You are here

function hook_state_flow_others_table_alter in State Machine 7.2

Implements hook_state_flow_others_table_alter().

Allows altering the content of the Other Revisions table on the workflow tab prior to rendering.

Parameters

$table: The render array for the others 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_others_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 101
Define a new StateMachine for the node

Code

function hook_state_flow_others_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]);
  }
}