function hook_state_flow_draft_table_alter in State Machine 7.2
Implements hook_state_flow_draft_table_alter().
Allows altering the content of the Drafts table on the workflow tab prior to rendering.
Parameters
$table: The render array for the drafts table.
$node: The node that the workflow page is being rendered for.
$states: An array of all of the revisions and workflow states for the node.
1 invocation of hook_state_flow_draft_table_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 76 - Define a new StateMachine for the node
Code
function hook_state_flow_draft_table_alter(&$table, $node, $states) {
// Remove the VID column header.
unset($table['header'][0]);
// Remove the vid column.
foreach ($table['rows'] as $row_num => $row) {
unset($table['rows'][$row_num][0]);
}
}