function state_flow_node_revision_status in State Machine 7.2
Implements hook_node_revision_status()
Parameters
$node: THe node revision object
Return value
string The display label of the status
File
- modules/
state_flow/ state_flow.module, line 782 - An implementation of node revision workflow for Drupal based on the State Machine system.
Code
function state_flow_node_revision_status($node) {
return !state_flow_load_state_machine($node)
->ignore() ? state_flow_load_state_machine($node)
->get_label_for_current_state() : '- None -';
}