stableversion-3.0
Last change
on this file was
4f375e3,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el modulo panels
|
-
Propiedad mode establecida a
100644
|
File size:
1.0 KB
|
Ver. | Línea | |
---|
[4f375e3] | 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 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.