You are here

function page_theme_menu in Page Theme 7

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

Implements hook_menu().

File

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

Code

function page_theme_menu() {
  $menu = array();
  $menu['admin/structure/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/structure/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_ACTION,
    'weight' => 1,
    'file' => 'page_theme.admin.inc',
  );
  $menu['admin/structure/page-theme/manage/%page_theme'] = array(
    'title' => 'Configure theme',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'page_theme_admin_edit',
      4,
    ),
    'access arguments' => array(
      'administer page theme',
    ),
    'file' => 'page_theme.admin.inc',
  );
  $menu['admin/structure/page-theme/manage/%page_theme/configure'] = array(
    'title' => 'Configure theme',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
  );
  $menu['admin/structure/page-theme/manage/%page_theme/delete'] = 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_LOCAL_TASK,
    'context' => MENU_CONTEXT_NONE,
    'file' => 'page_theme.admin.inc',
  );
  return $menu;
}