You are here

function panels_mini_menu in Panels 7.3

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \panels_mini_menu()
  2. 6.3 panels_mini/panels_mini.module \panels_mini_menu()
  3. 6.2 panels_mini/panels_mini.module \panels_mini_menu()

Implementation of hook_menu().

File

panels_mini/panels_mini.module, line 30
panels_mini.module

Code

function panels_mini_menu() {

  // Safety: go away if CTools is not at an appropriate version.
  if (!defined('PANELS_REQUIRED_CTOOLS_API') || !module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
    return array();
  }
  $items['admin/structure/mini-panels/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'panels_mini_settings',
    'access arguments' => array(
      'create mini panels',
    ),
    'type' => MENU_LOCAL_TASK,
  );

  // Also provide settings on the main panel UI.
  $items['admin/structure/panels/settings/panels-mini'] = array(
    'title' => 'Mini panels',
    'page callback' => 'panels_mini_settings',
    'access arguments' => array(
      'create mini panels',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}