Révision 64156087
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/panels/includes/callbacks.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
/** |
3 |
* @file callbacks.inc
|
|
3 |
* @file Callbacks.inc
|
|
4 | 4 |
* Minor menu callbacks for Panels helpers. |
5 | 5 |
*/ |
6 | 6 |
|
... | ... | |
46 | 46 |
'description' => t('Custom layouts can add more, site-specific layouts that you can use in your panels.'), |
47 | 47 |
); |
48 | 48 |
|
49 |
// Load all mini panels and their displays.
|
|
49 |
// Load all mini panels and their displays. |
|
50 | 50 |
ctools_include('export'); |
51 | 51 |
$items = ctools_export_crud_load_all('panels_layout'); |
52 | 52 |
$count = 0; |
... | ... | |
97 | 97 |
$function($vars); |
98 | 98 |
} |
99 | 99 |
|
100 |
// Add in any default links for modules that are not active |
|
100 |
// Add in any default links for modules that are not active.
|
|
101 | 101 |
panels_dashboard_final_blocks($vars); |
102 | 102 |
|
103 | 103 |
// If page manager module is enabled, add a very low eight block to |
... | ... | |
138 | 138 |
'class' => 'dashboard-create', |
139 | 139 |
); |
140 | 140 |
|
141 |
// Turn the links into a block |
|
141 |
// Turn the links into a block.
|
|
142 | 142 |
foreach ($vars['links'] as $link) { |
143 | 143 |
$vars['blocks']['links']['content'] .= theme('panels_dashboard_link', array('link' => $link)); |
144 | 144 |
} |
... | ... | |
148 | 148 |
$vars['left'] = ''; |
149 | 149 |
$vars['right'] = ''; |
150 | 150 |
|
151 |
// Render all the blocks |
|
151 |
// Render all the blocks.
|
|
152 | 152 |
foreach ($vars['blocks'] as $block) { |
153 | 153 |
$section = !empty($block['section']) ? $block['section'] : 'left'; |
154 | 154 |
$vars[$section] .= theme('panels_dashboard_block', array('block' => $block)); |
... | ... | |
202 | 202 |
ctools_include('common', 'panels'); |
203 | 203 |
return drupal_get_form('panels_common_settings', 'panels_page'); |
204 | 204 |
} |
205 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules