You are here

function page_title_menu in Page Title 6.2

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 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 108
Enhanced control over the page title (in the head tag).

Code

function page_title_menu() {
  $items = array();
  $items['admin/settings/page-title'] = array(
    'title' => 'Page title',
    'description' => 'Configure the page titles for your site (the title 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,
    'file' => 'page_title.admin.inc',
  );
  if (db_table_exists('page_title_old')) {
    $items['admin/settings/page-title/drop-old-table'] = array(
      'title' => 'Drop Old Page Title Table?',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'page_title_drop_old_table_form',
      ),
      'access arguments' => array(
        'administer site configuration',
      ),
      'type' => MENU_CALLBACK,
      'file' => 'page_title.legacy.inc',
    );
  }
  return $items;
}