function scald_index_menu in scald_index 7
Implements hook_menu().
File
- ./
scald_index.module, line 27
Code
function scald_index_menu() {
$items = array();
// Confirm index rebuild.
$items['admin/structure/scald/atoms-index'] = array(
'title' => 'Atoms index',
'description' => 'View the index of atoms.',
'access arguments' => array(
'administer scald index',
),
'page callback' => 'views_embed_view',
'page arguments' => array(
'scald_atoms_index',
'page_1',
),
'type' => MENU_NORMAL_ITEM,
);
// View atom index.
$items['admin/structure/scald/atoms-index/view'] = array(
'title' => 'View atoms index',
'description' => 'View the index of atoms.',
'access arguments' => array(
'administer scald index',
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
// Confirm index rebuild.
$items['admin/structure/scald/atoms-index/rebuild'] = array(
'title' => 'Rebuild index',
'access arguments' => array(
'administer scald index',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scald_index_rebuild_confirm_form',
),
'weight' => 10,
'type' => MENU_LOCAL_TASK,
);
return $items;
}