public static function boxes_box::reset in Boxes 7
Same name and namespace in other branches
- 6 plugins/boxes_box.inc \boxes_box::reset()
Reset the boxes cache.
Both ctools and boxes current maintain caches, ctools of the config and boxes of the loaded box objects. We clear them both.
3 calls to boxes_box::reset()
- boxes_box::delete in plugins/
boxes_box.inc - Delete a box.
- boxes_box::save in plugins/
boxes_box.inc - Save a box.
- boxes_box_load_reset in ./
boxes.module - Reset boxes load caches.
File
- plugins/
boxes_box.inc, line 85
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 static function reset() {
ctools_include('export');
ctools_export_load_object_reset('box');
self::$boxes = array();
}