You are here

function panels_everywhere_menu in Panels Everywhere 7

Same name and namespace in other branches
  1. 6 panels_everywhere.module \panels_everywhere_menu()

Implement hook_menu().

File

./panels_everywhere.module, line 15
panels_everywhere.module

Code

function panels_everywhere_menu() {
  $items = array();
  $items['admin/structure/panels/settings/everywhere'] = array(
    'title' => 'Everywhere',
    'file' => 'panels_everywhere.admin.inc',
    'page callback' => 'drupal_get_form',
    'access arguments' => array(
      'administer page manager',
    ),
    'page arguments' => array(
      'panels_everywhere_settings_page',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  if (variable_get('panels_everywhere_site_template_enabled', FALSE)) {
    $items['admin/structure/pages/site_template'] = array(
      'title' => 'Edit site template',
      'page callback' => 'panels_everywhere_edit_site_template',
      'type' => MENU_LOCAL_TASK,
      'access arguments' => array(
        'use page manager',
      ),
    );
  }
  return $items;
}