Collections Functions
Encryption Functions
General Functions
Theme Permission Functions
Resource Functions

get_search_default_restypes()

Parameters

This function accepts no parameters.

Location

include/search_functions.php lines 2788 to 2804

Definition

 
function get_search_default_restypes()
    {
    global 
$search_includes_resources$collection_search_includes_resource_metadata;
    
$defaultrestypes=array();
    if(
$search_includes_resources)
        {
        
$defaultrestypes[] = "Global";
        }
      else
        {
        
$defaultrestypes[] = "Collections";
        if(
$search_includes_user_collections){$defaultrestypes[] = "mycol";}
        if(
$search_includes_public_collections){$defaultrestypes[] = "pubcol";}
        if(
$search_includes_themes){$defaultrestypes[] = "themes";}
        }    
    return 
$defaultrestypes;
    }

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