Révision 2545992a
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/panels/panels.module | ||
---|---|---|
334 | 334 |
); |
335 | 335 |
} |
336 | 336 |
|
337 |
/** |
|
338 |
* Implementation of hook_flush_caches(). |
|
339 |
* |
|
340 |
* We implement this so that we can be sure our legacy rendering state setting |
|
341 |
* in $conf is updated whenever caches are cleared. |
|
342 |
*/ |
|
343 |
//function panels_flush_caches() { |
|
344 |
// $legacy = panels_get_legacy_state(); |
|
345 |
// $legacy->determineStatus(); |
|
346 |
//} |
|
347 |
|
|
348 | 337 |
/** |
349 | 338 |
* Implements hook_flush_caches(). |
350 | 339 |
*/ |
... | ... | |
664 | 653 |
|
665 | 654 |
/** |
666 | 655 |
* Forms the basis of a panel display |
667 |
* |
|
668 | 656 |
*/ |
669 | 657 |
class panels_display { |
670 | 658 |
var $args = array(); |
... | ... | |
1813 | 1801 |
} |
1814 | 1802 |
} |
1815 | 1803 |
|
1804 |
/** |
|
1805 |
* Implements hook_default_page_manager_handlers_alter(). |
|
1806 |
* |
|
1807 |
* If a default Panels display has no storage type, set it. |
|
1808 |
*/ |
|
1809 |
function panels_default_page_manager_handlers_alter(&$handlers) { |
|
1810 |
foreach ($handlers as &$handler) { |
|
1811 |
if ($handler->handler == 'panel_context') { |
|
1812 |
$display =& $handler->conf['display']; |
|
1813 |
if (empty($display->storage_type)) { |
|
1814 |
$display->storage_type = 'page_manager'; |
|
1815 |
$display->storage_id = $handler->name; |
|
1816 |
} |
|
1817 |
} |
|
1818 |
} |
|
1819 |
} |
|
1820 |
|
|
1821 |
/** |
|
1822 |
* Implements hook_default_page_manager_pages_alter(). |
|
1823 |
*/ |
|
1824 |
function panels_default_page_manager_pages_alter(&$pages) { |
|
1825 |
foreach ($pages as &$page) { |
|
1826 |
panels_default_page_manager_handlers_alter($page->default_handlers); |
|
1827 |
} |
|
1828 |
} |
|
1829 |
|
|
1816 | 1830 |
// -------------------------------------------------------------------------- |
1817 | 1831 |
// General utility functions |
1818 | 1832 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules