Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_default_search_states()

Description

get the default archive states to search

Parameters

This function accepts no parameters.

Return

array

Location

include/search_functions.php lines 1738 to 1759

Definition

 
function get_default_search_states()
    {
    global 
$searchstates$pending_submission_searchable_to_all$pending_review_visible_to_all;

    
$defaultsearchstates = isset($searchstates) ? $searchstates : array(0); // May be set by rse_workflow plugin

    
if($pending_submission_searchable_to_all)
        {
        
$defaultsearchstates[] = -2;
        }
    if(
$pending_review_visible_to_all)
        {
        
$defaultsearchstates[] = -1;
        }

    
$modifiedstates hook("modify_default_search_states","",array($defaultsearchstates));
    if(
is_array($modifiedstates))
        {
        return 
$modifiedstates;
        }
    return 
$defaultsearchstates;
    }

This article was last updated 13th July 2020 16:35 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.