array( 'label' => 'editor.email.address.label', 'type' => 'email', 'placeholder' => 'editor.email.address.placeholder', 'autofocus' => 'true', 'required' => 'true', ), 'text' => array( 'label' => 'editor.email.text.label', 'type' => 'text', 'help' => 'editor.email.text.help', ) )); $form->data('textarea', 'form-field-' . $textarea); $form->style('editor'); $form->cancel($page, 'show'); return $form; };