You are here

function add_to_head_menu in Add To Head 7

Same name and namespace in other branches
  1. 6 add_to_head.module \add_to_head_menu()

Implements 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/config/development/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/config/development/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/config/development/add-to-head/%add_to_head_profile'] = array(
    'title' => 'Edit Profile',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'add_to_head_edit_profile',
      4,
    ),
    'file' => 'add_to_head.admin.inc',
    'access arguments' => array(
      'administer add to head',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/development/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',
      4,
    ),
    'file' => 'add_to_head.admin.inc',
    'access arguments' => array(
      'administer add to head',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}