You are here

function workflow_is_system_state in Workflow 5

Same name and namespace in other branches
  1. 5.2 workflow.module \workflow_is_system_state()
  2. 6.2 workflow.module \workflow_is_system_state()
  3. 6 workflow.module \workflow_is_system_state()

Tell caller whether a state is a protected system state, such as the creation state.

Parameters

$state: The name of the state to test

Return value

boolean

2 calls to workflow_is_system_state()
workflow_access_form_alter in ./workflow_access.module
Implementation of hook_form_alter().
workflow_overview in ./workflow.module
Create the main workflow page, which gives an overview of workflows and workflow states.

File

./workflow.module, line 1202

Code

function workflow_is_system_state($state) {
  static $states;
  if (!isset($states)) {
    $states = array(
      t('(creation)') => TRUE,
    );
  }
  return isset($states[$state]);
}