setName('form_config_resource_file'); } /** * @see Form::createElements() */ public function createElements(array $formData) { return array( $this->createElement( 'text', 'filename', array( 'required' => true, 'label' => t('Filepath'), 'description' => t('The filename to fetch information from'), 'validators' => array(new ReadablePathValidator()) ) ), $this->createElement( 'text', 'fields', array( 'required' => true, 'label' => t('Pattern'), 'description' => t('The regular expression by which to identify columns') ) ) ); } }