function block_revisions_menu in Block Revisions 7
Same name and namespace in other branches
- 6 block_revisions.module \block_revisions_menu()
Implements hook_menu().
File
- ./
block_revisions.module, line 11
Code
function block_revisions_menu() {
// Add a 'revisions' tab when configuring blocks.
$items['admin/structure/block/manage/%/%/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/structure/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/structure/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;
}