public function boxes_box::delete in Boxes 6
Same name and namespace in other branches
- 7 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_query("DELETE FROM {box} WHERE delta = '%s'", $this->delta);
module_exists('context') ? context_invalidate_cache() : NULL;
}