public function deleteFormFieldAction()
 {
     if (!$this->_request->isXmlHttpRequest()) {
         $this->_redirect('/admin/forms/');
     }
     $return = array();
     $formField = new Forms_Model_FormField(array());
     $formField->populate(array('form_field_id' => $this->_request->getParam('field_id')));
     $formField->delete();
     $flashMessenger = $this->_helper->getHelper('FlashMessenger');
     $flashMessenger->setNamespace('notifications')->addMessage('Field Removed!');
     $return['notification']['target'] = '.notifications';
     $return['notification']['content'] = $this->view->displayMessages(true);
     $this->_helper->json->sendJson($return);
 }
 /**
  *
  * @param String|$type
  * @return Zend_Form|Object
  */
 public function getForm($type = 'CreateFormField')
 {
     $form = new Forms_Model_FormField(array(), $this);
     return $form->getForm($type);
 }