function bootstrap_tour_menu in Bootstrap Tour 7
Same name and namespace in other branches
- 7.2 bootstrap_tour.module \bootstrap_tour_menu()
Implementation of hook_menu()
File
- ./
bootstrap_tour.module, line 143
Code
function bootstrap_tour_menu() {
$items = array();
$items['admin/structure/tours'] = array(
'title' => 'Site Tours',
'description' => 'Create, edit and delete guided site tours',
'page callback' => 'bootstrap_tour_list',
'access arguments' => array(
'administer bootstrap tours',
),
);
$items['admin/structure/tours/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/structure/tours/add'] = array(
'title' => 'Add site tour',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bootstrap_tour_form',
),
'access arguments' => array(
'administer bootstrap tours',
),
'type' => MENU_LOCAL_ACTION,
);
$items['admin/structure/tours/manage/%bootstrap_tour'] = array(
'title' => 'Edit site tour',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bootstrap_tour_form',
4,
),
'access arguments' => array(
'administer bootstrap tours',
),
);
$items['admin/structure/tours/manage/%bootstrap_tour/edit'] = array(
'title' => 'Edit site tour',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/tours/manage/%bootstrap_tour/delete'] = array(
'title' => 'Delete site tour',
'page arguments' => array(
'bootstrap_tour_delete_confirm',
4,
),
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer bootstrap tours',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/tours/manage/%bootstrap_tour/toggle'] = array(
'title' => 'Toggle tour status',
'page arguments' => array(
4,
),
'page callback' => 'bootstrap_tour_toggle_status',
'access arguments' => array(
'administer bootstrap tours',
),
'type' => MENU_LOCAL_TASK,
);
$items['bootstrap_tour/ajax/end_current_tour'] = array(
'title' => 'AJAX callback to end current tour',
'page callback' => 'bootstrap_tour_end_current_tour',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}