You are here

function content_theme_menu in Content Theme 7

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

Implements hook_menu().

File

./content_theme.module, line 65
This module allows to use different themes than the site default on content creating, editing, and viewing pages.

Code

function content_theme_menu() {
  $menu = array();
  $menu['admin/structure/content-theme'] = array(
    'title' => 'Content theme',
    'description' => 'Configure which theme is used when content is created, edited or be viewed.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_theme_admin_content_node',
    ),
    'access arguments' => array(
      'administer content theme',
    ),
    'file' => 'content_theme.admin.inc',
  );
  $menu['admin/structure/content-theme/content-node'] = array(
    'title' => 'Content node',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $menu['admin/structure/content-theme/content-type'] = array(
    'title' => 'Content type',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_theme_admin_content_type',
    ),
    'access arguments' => array(
      'administer content theme',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 0,
    'file' => 'content_theme.admin.inc',
  );
  $menu['admin/structure/content-theme/content-wide'] = array(
    'title' => 'Content wide',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_theme_admin_content_wide',
    ),
    'access arguments' => array(
      'administer content theme',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'file' => 'content_theme.admin.inc',
  );
  $menu['admin/structure/content-theme/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_theme_admin_settings',
    ),
    'access arguments' => array(
      'administer content theme',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
    'file' => 'content_theme.admin.inc',
  );
  return $menu;
}