Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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

mixed

Location

include/action_functions.php lines 112 to 121

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)));
    
    return 
do_search("",$searchable_restypes,'resourceid',$actions_notify_states,-1,'desc',false,0,false,false,'',false,false,false,true,true);
    }

This article was last updated 18th May 2024 08:35 Europe/London time based on the source file dated 6th March 2024 14:45 Europe/London time.