You are here

panels_mini.admin.inc in Panels 6.3

Same filename and directory in other branches
  1. 6.2 panels_mini/panels_mini.admin.inc

Administrative items for the panels mini module.

File

panels_mini/panels_mini.admin.inc
View source
<?php

/**
 * @file
 *
 * Administrative items for the panels mini module.
 */

/**
 * Implementation of hook_menu().
 */
function _panels_mini_menu() {

  // Provide some common options to reduce code repetition.
  // By using array addition and making sure these are the rightmost
  // value, they won't override anything already set.
  $base = array(
    'access arguments' => array(
      'create mini panels',
    ),
    'file' => 'panels_mini.admin.inc',
  );
  $items['admin/build/mini-panels/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'panels_mini_settings',
    'type' => MENU_LOCAL_TASK,
  ) + $base;

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

/**
 * Settings for mini panels.
 */
function panels_mini_settings() {
  ctools_include('common', 'panels');
  return drupal_get_form('panels_common_settings', 'panels_mini');
}

Functions

Namesort descending Description
panels_mini_settings Settings for mini panels.
_panels_mini_menu Implementation of hook_menu().