You are here

function spaces_controller_boxes::set in Boxes 7

Same name and namespace in other branches
  1. 6 plugins/spaces_controller_boxes.inc \spaces_controller_boxes::set()

Override of the set() method.

Remove flags used by to detect state and transflorm to stdClass so that the box configuration can be loaded regardless of whether the plugin is available.

File

plugins/spaces_controller_boxes.inc, line 36

Class

spaces_controller_boxes
Spaces controller for boxes module.

Code

function set($id, $value) {
  unset($value->new);
  unset($value->export_type);
  $box = new stdClass();
  foreach ($value as $k => $v) {
    $box->{$k} = $v;
  }
  parent::set($id, $box);
}