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 2892 to 2908

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 15th May 2021 00:35 Europe/London time based on the source file dated 10th May 2021 16:45 Europe/London time.