function workflow_is_system_state in Workflow 6
Same name and namespace in other branches
- 5.2 workflow.module \workflow_is_system_state()
- 5 workflow.module \workflow_is_system_state()
- 6.2 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
TRUE if the state is a system state.
2 calls to workflow_is_system_state()
- workflow_access_form_workflow_edit_form_alter in workflow_access/
workflow_access.module - Implementation of hook_form_alter().
- workflow_admin_ui_overview in workflow_admin_ui/
workflow_admin_ui.module - Menu callback. Create the main workflow page, which gives an overview of workflows and workflow states.
File
- ./
workflow.module, line 675 - Support workflows made up of arbitrary states.
Code
function workflow_is_system_state($state) {
static $states;
if (!isset($states)) {
$states = array(
t('(creation)') => TRUE,
);
}
return isset($states[$state]);
}