public function createForm() { $form = new Am_Form_Admin_CustomField($this->grid->getRecord()); $form->setTable($this->getTable()); return $form; }
function init() { parent::init(); $this->addElement(new Am_Form_Element_ResourceAccess())->setName('_access')->setLabel(___("Access Permissions\n" . 'this field will be removed from form if access permission ' . 'does not match and user will not be able to update this field')); }