Collections Functions
Encryption Functions
General Functions
Theme Permission Functions
Resource Functions

GetThemesFromRequest()

Description

Get a themes array

Parameters

ColumnTypeDefaultDescription
$levels int Number of levels to parse from request

Return

array Array containing names of themes matching the syntax used in the collection table i.e. theme, theme2, theme3

Location

include/collections_functions.php lines 3408 to 3425

Definition

 
function GetThemesFromRequest($levels)
    {
    
$themes = array();
    for(
$n=1;$n <= $levels;$n++)
        {
        
$themeindex = ($n == "" $n);
        
$themename getval("theme$themeindex","");
        if(
$themename != "")
            {
            
$themes[] = $themename;
            }
        else
            {
            break;    
            }
        }           
    return 
$themes;
    }

This article was last updated 13th August 2020 01:35 Europe/London time based on the source file dated 10th August 2020 18:15 Europe/London time.