public function deleteAction()
    {
        if ($this->isConfirmedItem($this->_('Delete %s'))) {
            $model   = $this->getModel();
            $deleted = $model->delete();

            $this->addMessage(sprintf($this->_('%2$u %1$s deleted'), $this->getTopic($deleted), $deleted), 'success');
            $this->_reroute(array('action' => 'index'), true);
        }
    }
public function deleteAction()
    {
        if ($this->isConfirmedItem($this->_('Delete %s'))) {
            $model   = $this->getModel();
            $deleted = $model->delete();

            $this->addMessage(sprintf($this->_('%2$u %1$s deleted'), $this->getTopic($deleted), $deleted), 'success');
            $this->_reroute(array('action' => 'index'), true);
        }
    }
public function deleteAction ( ) { if ( $ this -> isConfirmedItem ( $ this -> _ ( 'Delete %s' ) ) ) { $ model = $ this -> getModel ( ) ; $ deleted = $ model -> delete ( ) ; $ this -> addMessage ( sprintf ( $ this -> _ ( '%2$u %1$s deleted' ) , $ this -> getTopic ( $ deleted ) , $ deleted ) , 'success' ) ; $ this -> _reroute ( array ( 'action' => 'index' ) , true ) ; } }
Creates a form to delete a record

Uses $this->getModel()
$this->addFormElements()
Creates a form to delete a record