/** * Total clean up, danger */ function action_drop_all() { $this->_load(); if (is_callable(array($this, 'action_drop_all_before'))) { $this->action_drop_all_before(); } $count = $this->collection->count(); $this->collection->remove_all(); if (is_callable(array($this, 'action_drop_all_after'))) { $this->action_drop_all_after(); } if ($this->in_ajax()) { $this->_ajax_answer((bool) $count, i18n::T('Items deleted'), $count); } else { $this->set_message(i18n::T('Items deleted')); } $this->disable_render(true); }