You are here

function workflow_revert_menu in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow_revert/workflow_revert.module \workflow_revert_menu()

Implements hook_menu().

File

workflow_revert/workflow_revert.module, line 22
Adds an 'Revert' link to the first workflow history row.

Code

function workflow_revert_menu() {
  $items = array();
  $items['workflow_revert'] = array(
    'title' => 'Workflow Undo',
    'access arguments' => array(
      'revert workflow',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'workflow_revert_form',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}