function panels_cache_object::restore in Panels 5.2
Same name and namespace in other branches
- 6.3 includes/plugins.inc \panels_cache_object::restore()
- 6.2 includes/plugins.inc \panels_cache_object::restore()
- 7.3 includes/plugins.inc \panels_cache_object::restore()
Restore out of band data saved to cache.
File
- includes/
plugins.inc, line 716 - plugins.inc
Class
- panels_cache_object
- An object to hold caching information while it is happening.
Code
function restore() {
if (!empty($this->head)) {
drupal_set_html_head($this->head);
}
if (!empty($this->css)) {
foreach ($this->css as $args) {
call_user_func_array('drupal_add_css', $args);
}
}
if (!empty($this->js)) {
foreach ($this->js as $args) {
call_user_func_array('drupal_add_js', $args);
}
}
}