function block_revisions_menu in Block Revisions 6
Same name and namespace in other branches
- 7 block_revisions.module \block_revisions_menu()
Implementation of hook_menu().
File
- ./
block_revisions.module, line 17
Code
function block_revisions_menu() {
global $base_root;
$items['admin/build/block/configure/%/%'] = array(
'title' => 'Configure block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'block_admin_configure',
4,
5,
),
'access arguments' => array(
'administer blocks',
),
'file' => 'block.admin.inc',
'file path' => drupal_get_path('module', 'block'),
);
$items['admin/build/block/configure/%/%/edit'] = array(
'title' => 'Configure block',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
// Add a 'revisions' tab when configuring blocks.
$items['admin/build/block/configure/%/%/revisions'] = array(
'title' => 'Revisions',
'page callback' => 'block_revisions_overview',
'page arguments' => array(
5,
),
'access callback' => '_block_revisions_access',
'access arguments' => array(
4,
5,
),
'type' => MENU_LOCAL_TASK,
'file' => 'block_revisions.admin.inc',
);
// Menu callback for deleting a previous revision.
$items['admin/build/block/revisions/delete/%/%block_revision'] = array(
'title' => 'Delete earlier revision',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'block_revisions_delete_confirm',
6,
),
'load arguments' => array(
5,
),
'access callback' => '_block_revisions_access',
'access arguments' => array(
'block',
5,
),
'type' => MENU_CALLBACK,
'file' => 'block_revisions.admin.inc',
);
// Menu callback for reverting to a previous revision.
$items['admin/build/block/revisions/revert/%/%block_revision'] = array(
'title' => 'Delete earlier revision',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'block_revisions_revert_confirm',
6,
),
'load arguments' => array(
5,
),
'access callback' => '_block_revisions_access',
'access arguments' => array(
'block',
5,
),
'type' => MENU_CALLBACK,
'file' => 'block_revisions.admin.inc',
);
return $items;
}