function panels_cache_object::restore in Panels 6.3
Same name and namespace in other branches
- 5.2 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 220 - Contains helper code for plugins and contexts.
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);
}
}
if (!empty($this->tokens)) {
foreach ($this->tokens as $token => $key) {
list($type, $argument) = $key;
ctools_set_page_token($token, $type, $argument);
}
}
}