You are here

function page_title_menu in Page Title 5.2

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_menu()
  2. 5 page_title.module \page_title_menu()
  3. 6.2 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 49
Enhanced control over the page title (in the head tag).

Code

function page_title_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/page_title',
      'title' => t('Page titles'),
      'description' => t('Enhanced control over the page titles (in the <head> tag).'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'page_title_admin_settings',
      ),
      'access' => user_access('administer page titles'),
    );
  }
  else {
    if (arg(0) == 'admin' && arg(1) == 'content' && arg(2) == 'page_title') {
      require_once 'page_title.admin.inc';
    }
  }
  return $items;
}