You are here

function page_theme_menu in Page Theme 6

Same name and namespace in other branches
  1. 7.2 page_theme.module \page_theme_menu()
  2. 7 page_theme.module \page_theme_menu()

Implementation of hook_menu().

File

./page_theme.module, line 44
This module allows to use different themes than the site default on specific pages.

Code

function page_theme_menu() {
  $menu = array();
  $menu['admin/build/page-theme'] = array(
    'title' => 'Page theme',
    'description' => 'Configure which theme is used on which pages.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_theme_admin_overview',
    ),
    'access arguments' => array(
      'administer page theme',
    ),
    'file' => 'page_theme.admin.inc',
  );
  $menu['admin/build/page-theme/overview'] = array(
    'title' => 'Overview',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $menu['admin/build/page-theme/add'] = array(
    'title' => 'Add theme',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_theme_admin_add',
    ),
    'access callback' => 'page_theme_menu_access_add',
    'access arguments' => array(
      'administer page theme',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'page_theme.admin.inc',
  );
  $menu['admin/build/page-theme/edit/%page_theme'] = array(
    'title' => 'Edit theme',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_theme_admin_edit',
      4,
    ),
    'access arguments' => array(
      'administer page theme',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'page_theme.admin.inc',
  );
  $menu['admin/build/page-theme/delete/%page_theme'] = array(
    'title' => 'Delete theme',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_theme_admin_delete',
      4,
    ),
    'access arguments' => array(
      'administer page theme',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'page_theme.admin.inc',
  );
  return $menu;
}