function panels_cache_object::restore in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_cache_object::restore()
- 6.3 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 721 
- 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);
    }
  }
}