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