function workflow_revert_menu in Workflow 7.2
Same name and namespace in other branches
- 7 workflow_revert/workflow_revert.module \workflow_revert_menu()
Implements hook_menu().
File
- workflow_revert/
workflow_revert.module, line 23 - Adds an 'Revert' link to the first workflow history row.
Code
function workflow_revert_menu() {
$items = array();
$items['workflow_revert'] = array(
'title' => 'Workflow Undo',
'file' => 'workflow_revert.pages.inc',
'access arguments' => array(
'revert workflow',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'workflow_revert_form',
),
'type' => MENU_CALLBACK,
);
return $items;
}