Révision 2545992a
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/panels/panels_mini/panels_mini.module | ||
---|---|---|
313 | 313 |
foreach ($panel_names as $name) { |
314 | 314 |
$cids[] = 'panels_mini_load:' . $name->name; |
315 | 315 |
} |
316 |
if (empty($cids)) { |
|
317 |
return array_filter($cache); |
|
318 |
} |
|
319 | 316 |
$output = cache_get_multiple($cids, 'cache_panels'); |
320 | 317 |
foreach ($output as $mini) { |
321 | 318 |
if (!empty($mini->data)) { |
... | ... | |
430 | 427 |
} |
431 | 428 |
} |
432 | 429 |
|
430 |
/** |
|
431 |
* Implements hook_default_panels_mini_alter(). |
|
432 |
* |
|
433 |
* If a default Panels display has no storage type, set it. |
|
434 |
*/ |
|
435 |
function panels_default_panels_mini_alter(&$mini_panels) { |
|
436 |
foreach ($mini_panels as &$mini_panel) { |
|
437 |
$display =& $mini_panel->display; |
|
438 |
if (empty($display->storage_type)) { |
|
439 |
$display->storage_type = 'panels_mini'; |
|
440 |
$display->storage_id = $mini_panel->name; |
|
441 |
} |
|
442 |
} |
|
443 |
} |
|
444 |
|
|
433 | 445 |
/** |
434 | 446 |
* Get the display cache for the panels_mini plugin. |
435 | 447 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules