function add_to_head_menu in Add To Head 6
Same name and namespace in other branches
- 7 add_to_head.module \add_to_head_menu()
Implementation of hook_menu().
File
- ./
add_to_head.module, line 12 - Add To Head allows abritrary insertion of code into the head of the page based on path selection.
Code
function add_to_head_menu() {
$items = array();
$items['admin/settings/add-to-head'] = array(
'title' => 'Add To Head',
'description' => 'Configure <em>Add To Head</em>.',
'page callback' => 'add_to_head_overview',
'file' => 'add_to_head.admin.inc',
'access arguments' => array(
'administer add to head',
),
);
$items['admin/settings/add-to-head/add'] = array(
'title' => 'Add New Profile',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'add_to_head_add_profile',
),
'file' => 'add_to_head.admin.inc',
'access arguments' => array(
'administer add to head',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/add-to-head/%add_to_head_profile'] = array(
'title' => 'Edit Profile',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'add_to_head_edit_profile',
3,
),
'file' => 'add_to_head.admin.inc',
'access arguments' => array(
'administer add to head',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/add-to-head/%add_to_head_profile/delete'] = array(
'title' => 'Delete Profile',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'add_to_head_delete_profile_confirm',
3,
),
'file' => 'add_to_head.admin.inc',
'access arguments' => array(
'administer add to head',
),
'type' => MENU_CALLBACK,
);
return $items;
}