public function boxes_box::delete in Boxes 7
Same name and namespace in other branches
- 6 plugins/boxes_box.inc \boxes_box::delete()
Delete a box.
File
- plugins/
boxes_box.inc, line 114
Class
- boxes_box
- Abstract base class defining a box. A boxes content plugin provides a form of options for configuring content and renders content for display.
Code
public function delete() {
self::reset();
unset(self::$boxes[$this->delta]);
db_delete('box')
->condition('delta', $this->delta)
->execute();
module_exists('context') ? context_invalidate_cache() : NULL;
}