protected function spaces_controller_boxes::load_original_values

cis7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)
cle7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)
elmsmedia7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)
icor7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)
meedjum_blog7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)
mooc7 spaces_controller_boxes.inc protected spaces_controller_boxes::load_original_values($id = NULL)

File

sites/all/modules/ulmus/boxes/plugins/spaces_controller_boxes.inc, line 9

Class

spaces_controller_boxes
Spaces controller for boxes module.

Code

protected function load_original_values($id = NULL) {
  if (empty($this->loaded_all['original'])) {
    // TODO can we always rely on having export.inc loaded?
    if (!isset($id)) {
      $boxes = array();
      foreach (ctools_export_load_object('box') as $box) {
        $boxes[$box->delta] = $box;
      }
      $this->values['original'] = $boxes;
      $this->loaded_all['original'] = TRUE;
    }
    else if (!isset($this->loaded['original'][$id])) {
      if ($box = array_pop(ctools_export_load_object('box', 'names', array($id)))) {
        $this->values['original'][$id] = $box;
        $this->loaded['original'][$id] = TRUE;
      }
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.