Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_editable_resource_sql()

Description

Return an SQL statement to find all editable resources in $actions_notify_states.

Parameters

This function accepts no parameters.

Return

string

Location

include/action_functions.php lines 80 to 89

Definition

 
function get_editable_resource_sql()
    {
    global 
$actions_notify_states$actions_resource_types_hide$default_display$list_display_fields$search_all_workflow_states;
    
$default_display    $list_display_fields;
    
$search_all_workflow_states false;
    
$rtypes=get_resource_types();
    
$searchable_restypes=implode(",",array_diff(array_column($rtypes,"ref"),explode(",",$actions_resource_types_hide)));
    
$editable_resource_sql=do_search("",$searchable_restypes,'resourceid',$actions_notify_states,-1,'desc',false,0,false,false,'',false,false,false,true,true);
    return 
$editable_resource_sql;
    }

This article was last updated 16th July 2020 02:05 Europe/London time based on the source file dated 26th June 2020 13:26 Europe/London time.