Esempio n. 1
0
 /**
  * Remove item
  */
 function action_drop()
 {
     $item = $this->_load_id();
     if (is_callable(array($this, 'action_drop_before'))) {
         $this->action_drop_before($item);
     }
     $data = $item->render();
     $status = $this->collection->remove($this->params->id);
     if (is_callable(array($this, 'action_drop_after'))) {
         $this->action_drop_after();
     }
     if ($this->in_ajax()) {
         $this->_ajax_answer($status, i18n::T('Item deleted'), $data);
     }
 }