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

render_workflow_state_question()

Parameters

ColumnTypeDefaultDescription
$current null
$checkaccess true

Location

include/render_functions.php lines 5250 to 5270

Definition

 
function render_workflow_state_question($current=null$checkaccess=true)
    {
    global 
$additional_archive_states$lang;
    
$statusoptions = array();
    for (
$n=-2;$n<=3;$n++)
        {
        if (!
$checkaccess || checkperm("e" $n) || $n==$current)
            {
            
$statusoptions[$n] =  isset($lang["status" $n]) ?  $lang["status" $n] : $n;
            }
        }
    foreach (
$additional_archive_states as $additional_archive_state)
        {
        if (!
$checkaccess || checkperm("e" $additional_archive_state) || $additional_archive_state==$current)
            {
            
$statusoptions[$additional_archive_state] =  isset($lang["status" $additional_archive_state]) ?  $lang["status" $additional_archive_state] : $additional_archive_state;
            }
        }
    
    
render_dropdown_question($lang["status"], "share_status"$statusoptions$current" class=\"stdWidth\"");
    }

This article was last updated 15th May 2021 00:05 Europe/London time based on the source file dated 13th May 2021 09:40 Europe/London time.