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

get_advanced_search_collection_fields()

Parameters

ColumnTypeDefaultDescription
$archive false
$hiddenfields ""

Location

include/search_functions.php lines 100 to 119

Definition

 
function get_advanced_search_collection_fields($archive=false$hiddenfields="")
    {
    
# Returns a list of fields suitable for advanced searching. 
    
$return=array();

    
$hiddenfields=explode(",",$hiddenfields);

    
$fields[]=Array ("ref" => "collection_title""name" => "collectiontitle""display_condition" => """tooltip_text" => """title"=>"Title""type" => 0);
    
$fields[]=Array ("ref" => "collection_keywords""name" => "collectionkeywords""display_condition" => """tooltip_text" => """title"=>"Keywords""type" => 0);
    
$fields[]=Array ("ref" => "collection_owner""name" => "collectionowner""display_condition" => """tooltip_text" => """title"=>"Owner""type" => 0);
    
# Apply field permissions and check for fields hidden in advanced search
    
for ($n=0;$n<count($fields);$n++)
        {

        if (!
in_array($fields[$n]["ref"], $hiddenfields))
        {
$return[]=$fields[$n];}
        }

    return 
$return;
    }

This article was last updated 23rd November 2020 18:35 Europe/London time based on the source file dated 19th November 2020 14:20 Europe/London time.