original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Creates a form to delete a record
  
  Uses $this->getModel()
  $this->addFormElements()
docstring_tokens: Creates a form to delete a record