function action_menu

Implements hook_menu().

File

drupal/core/modules/action/action.module, line 59
This is the Actions module for executing stored actions.

Code

function action_menu() {
  $items['admin/config/system/actions'] = array(
    'title' => 'Actions',
    'description' => 'Manage the actions defined for your site.',
    'access arguments' => array(
      'administer actions',
    ),
    'page callback' => 'action_admin_manage',
    'file' => 'action.admin.inc',
  );
  $items['admin/config/system/actions/manage'] = array(
    'title' => 'Manage actions',
    'description' => 'Manage the actions defined for your site.',
    'page callback' => 'action_admin_manage',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -2,
    'file' => 'action.admin.inc',
  );
  $items['admin/config/system/actions/configure'] = array(
    'title' => 'Configure an advanced action',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'action_admin_configure',
    ),
    'access arguments' => array(
      'administer actions',
    ),
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'action.admin.inc',
  );
  $items['admin/config/system/actions/delete/%action'] = array(
    'title' => 'Delete action',
    'description' => 'Delete an action.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'action_admin_delete_form',
      5,
    ),
    'access arguments' => array(
      'administer actions',
    ),
    'file' => 'action.admin.inc',
  );
  $items['admin/config/system/actions/orphan'] = array(
    'title' => 'Remove orphans',
    'page callback' => 'action_admin_remove_orphans',
    'access arguments' => array(
      'administer actions',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'action.admin.inc',
  );
  return $items;
}