function scanner_menu in Search and Replace Scanner 6
Same name and namespace in other branches
- 5.2 scanner.module \scanner_menu()
- 7 scanner.module \scanner_menu()
Implementation of hook_menu().
File
- ./
scanner.module, line 59 - Search and Replace Scanner - works on all nodes text content.
Code
function scanner_menu() {
$items['admin/content/scanner'] = array(
'title' => 'Search and Replace Scanner',
'description' => 'Find (and replace) keywords in all your content.',
'page callback' => 'scanner_view',
'access arguments' => array(
'perform search and replace',
),
);
$items['admin/content/scanner/scan'] = array(
'title' => 'Search',
'access arguments' => array(
'perform search and replace',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/content/scanner/scan/confirm'] = array(
'title' => 'Confirm Replace',
'access arguments' => array(
'perform search and replace',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scanner_confirm_form',
),
'type' => MENU_CALLBACK,
);
$items['admin/content/scanner/undo/confirm'] = array(
'title' => 'Confirm Undo',
'access arguments' => array(
'perform search and replace',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scanner_undo_confirm_form',
),
'type' => MENU_CALLBACK,
);
$items['admin/content/scanner/settings'] = array(
// Shows up on scanner page as tab.
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scanner_admin_form',
),
'access arguments' => array(
'administer scanner settings',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/content/scanner/undo'] = array(
// Shows up on scanner page as tab.
'title' => 'Undo',
'page callback' => 'scanner_undo_page',
'access arguments' => array(
'perform search and replace',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/scanner'] = array(
// Shows up on admin page.
'title' => t('Search and Replace Scanner'),
'description' => 'Configure defaults and what fields can be searched and replaced.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scanner_admin_form',
),
'access arguments' => array(
'administer scanner settings',
),
);
return $items;
}