You are here

function workflow_cleanup_menu in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow_cleanup/workflow_cleanup.module \workflow_cleanup_menu()

Implements hook_menu().

File

workflow_cleanup/workflow_cleanup.module, line 11
Cleans up Workflow cruft that may build up over time.

Code

function workflow_cleanup_menu() {
  $items = array();
  $admin_path = WORKFLOW_ADMIN_UI_PATH;
  $items["{$admin_path}/cleanup"] = array(
    'title' => 'Clean up workflow',
    'file' => 'workflow_cleanup.pages.inc',
    'access arguments' => array(
      'administer workflow',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'workflow_cleanup_form',
    ),
    'type' => MENU_LOCAL_ACTION,
  );
  return $items;
}