Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_search_default_restypes()

Parameters

This function accepts no parameters.

Location

include/search_functions.php lines 2836 to 2852

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 27th November 2020 18:05 Europe/London time based on the source file dated 26th November 2020 14:30 Europe/London time.