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