You are here

function page_title_menu in Page Title 6

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_menu()
  2. 5.2 page_title.module \page_title_menu()
  3. 5 page_title.module \page_title_menu()
  4. 6.2 page_title.module \page_title_menu()
  5. 7.2 page_title.module \page_title_menu()
  6. 7 page_title.module \page_title_menu()

Implementation of hook_menu().

File

./page_title.module, line 52
Enhanced control over the page title (in the head tag).

Code

function page_title_menu() {
  $items['admin/content/page_title'] = array(
    'title' => t('Page titles'),
    'description' => t('Enhanced control over the page titles (in the <head> tag).'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_title_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer page titles',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/content/page_title/settings'] = array(
    'title' => t('Default settings'),
    'description' => t('Control the page title settings.'),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer page titles',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/content/page_title/types'] = array(
    'title' => t('Content type settings'),
    'description' => t('Control the display of the Page title field.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_title_admin_types',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer page titles',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}