You are here

public function sweaver_plugin_themeswitch::sweaver_menu in Sweaver 7

Same name and namespace in other branches
  1. 6 plugins/sweaver_plugin_themeswitch/sweaver_plugin_themeswitch.inc \sweaver_plugin_themeswitch::sweaver_menu()

Menu registry.

Overrides sweaver_plugin::sweaver_menu

File

plugins/sweaver_plugin_themeswitch/sweaver_plugin_themeswitch.inc, line 12
Themeswitch plugin.

Class

sweaver_plugin_themeswitch
@file Themeswitch plugin.

Code

public function sweaver_menu(&$weight, $page_arguments, $base) {
  $items = array();

  // Theme classes groups administration.
  $base['access arguments'] = array(
    'use editor',
  );
  $items['sweaver_themeswitch'] = $base + array(
    'title' => 'Theme switch',
    'page arguments' => array(
      $page_arguments,
    ),
    'type' => MENU_CALLBACK,
    'weight' => $weight++,
  );
  return $items;
}