function optimizely_menu in Optimizely 7.2
Same name and namespace in other branches
- 6 optimizely.module \optimizely_menu()
- 7.3 optimizely.module \optimizely_menu()
- 7 optimizely.module \optimizely_menu()
Implements hook_menu().
Menu entries that define the paths to trigger specific functionality when the path is accessed.
File
- ./
optimizely.module, line 56 - Optimizely module
Code
function optimizely_menu() {
$items = array();
$items['admin/config/system/optimizely'] = array(
'title' => 'Optimizely',
'description' => 'List of all different projects to put Optimizely code snippet.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'optimizely_project_list_form',
),
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
);
$items['admin/config/system/optimizely/default'] = array(
'title' => 'Project Listing',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/system/optimizely/add_update'] = array(
'title' => 'Add Project',
'description' => 'Add Project entry',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'optimizely_add_update_form',
),
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/config/system/optimizely/add_update/%'] = array(
'title' => 'Optimizely Edit Project',
'description' => 'Configure Project entry',
'page callback' => 'optimizely_add_update_update',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
'weight' => 11,
);
$items['admin/config/system/optimizely/settings'] = array(
'title' => 'Account Info',
'description' => 'Configure your Optimizely account details',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'optimizely_account_settings_form',
),
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
'type' => MENU_LOCAL_TASK,
'weight' => 30,
);
$items['admin/config/system/optimizely/delete/%'] = array(
'title' => 'Delete Project',
'description' => 'Deletes the target project from the database.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'optimizely_delete_page',
5,
),
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
'type' => MENU_CALLBACK,
);
$items['admin/config/system/optimizely/ajax'] = array(
'title' => 'Optimizely Administer AJAX',
'page callback' => 'optimizely_ajax_enable',
'access arguments' => array(
'administer optimizely',
),
'file' => 'optimizely.admin.inc',
'file path' => drupal_get_path('module', 'optimizely'),
'type' => MENU_CALLBACK,
);
return $items;
}