[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/panels/panels_mini/ -> panels_mini.admin.inc (source)

   1  <?php
   2  
   3  /**
   4   * @file
   5   *
   6   * Administrative items for the panels mini module.
   7   */
   8  /**
   9   * Implementation of hook_menu().
  10   */
  11  function _panels_mini_menu() {
  12    // Provide some common options to reduce code repetition.
  13    // By using array addition and making sure these are the rightmost
  14    // value, they won't override anything already set.
  15    $base = array(
  16      'access arguments' => array('create mini panels'),
  17      'file' => 'panels_mini.admin.inc',
  18    );
  19  
  20    $items['admin/build/mini-panels/settings'] = array(
  21      'title' => 'Settings',
  22      'page callback' => 'panels_mini_settings',
  23      'type' => MENU_LOCAL_TASK,
  24    ) + $base;
  25    // Also provide settings on the main panel UI
  26    $items['admin/build/panels/settings/panels-mini'] = array(
  27      'title' => 'Mini panels',
  28      'page callback' => 'panels_mini_settings',
  29      'type' => MENU_LOCAL_TASK,
  30    ) + $base;
  31  
  32    return $items;
  33  }
  34  
  35  /**
  36   * Settings for mini panels.
  37   */
  38  function panels_mini_settings() {
  39    ctools_include('common', 'panels');
  40    return drupal_get_form('panels_common_settings', 'panels_mini');
  41  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7