function workbench_moderation_state_load in Workbench Moderation 7.3
Same name and namespace in other branches
- 7 workbench_moderation.module \workbench_moderation_state_load()
Get information about a single moderation state.
Parameters
type $machine_name: The machine name of the state.
Return value
An object of information about the state or FALSE if the state does not exist.
1 call to workbench_moderation_state_load()
- workbench_moderation_states_features_export_render in ./
workbench_moderation.features.inc - Implements COMPONENT_features_export_render().
1 string reference to 'workbench_moderation_state_load'
- workbench_moderation_admin_states_form in ./
workbench_moderation.admin.inc - Administration form for states.
File
- ./
workbench_moderation.module, line 1477 - Content moderation for Workbench.
Code
function workbench_moderation_state_load($machine_name) {
$states = workbench_moderation_states();
if (isset($states[$machine_name])) {
return $states[$machine_name];
}
return FALSE;
}