Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_search_default_restypes()

Parameters

This function accepts no parameters.

Location

include/search_functions.php lines 3152 to 3174

Definition

 
function get_search_default_restypes()
    {
    global 
$search_includes_resources$search_includes_themes,$default_res_types;
    
$defaultrestypes=array();
    
    if(
$search_includes_resources)
        {
        if(
$default_res_types == "")
            {
            
$defaultrestypes[] = "Global";
            }
        else
            {
            
$defaultrestypes = (is_array($default_res_types)?$default_res_types:explode(",",(string) $default_res_types));
            }
        }
    else
        {
        
$defaultrestypes[] = "Collections";
        if(
$search_includes_themes){$defaultrestypes[] = "FeaturedCollections";}
        }   
    return 
$defaultrestypes;
    }

This article was last updated 18th May 2024 09:05 Europe/London time based on the source file dated 13th May 2024 14:40 Europe/London time.