function hook_state_flow_events_page_alter in State Machine 7.2
Implements hook_state_flow_events_page_alter().
Allows altering the render array for the workflow tab prior to being output.
Parameters
$data: The render array for the page content.
$node: The node that the workflow page is being rendered for.
$events: The available events/actions for the current workflow state.
1 invocation of hook_state_flow_events_page_alter()
- state_flow_events in modules/
state_flow/ state_flow.pages.inc - Page callback for a node's Workflow page.
File
- modules/
state_flow/ state_flow.api.php, line 56 - Define a new StateMachine for the node
Code
function hook_state_flow_events_page_alter(&$data, $node, $events) {
// Remove the version number
unset($data['content']['current_revision']['current_revision_vid']);
}