Esempio n. 1
0
 function action_active()
 {
     if (is_callable(array($this, 'action_active_before'))) {
         $this->action_active_before();
     }
     $this->collection->toggle_active($this->params->id, 'true' == functions::request_var('to', 'false'));
     if (is_callable(array($this, 'action_active_after'))) {
         $this->action_active_after();
     }
     if ($this->in_ajax()) {
         $this->_ajax_answer(true, i18n::T('Status changed'));
     }
 }