public function BoxCustom::save in Boxes 7.2
Save the record to the database
File
- boxes_admin_ui/
plugins/ custom.inc, line 33 - Box ctools plugin
Class
- BoxCustom
- DO NOT USE THIS BOX. ONLY USED FOR THE UI PLUGINS
Code
public function save($new = FALSE) {
$box_type = array(
'name' => $this->type,
'label' => $this
->getLabel(),
'description' => $this
->getDescription(),
);
$primary_key = $new == FALSE ? 'name' : array();
drupal_write_record('box_type', $box_type, $primary_key);
drupal_static_reset('boxes_admin_ui_get_types');
boxes_reset();
}