You are here

public function FlexiformElementUserPass::configureForm in Flexiform 7

Build the configure form for the element.

Overrides FlexiformElement::configureForm

File

includes/element/user_pass.element.inc, line 62
Contains class for the User pass element.

Class

FlexiformElementUserPass
Class to add the node title field to a form.

Code

public function configureForm($form, &$form_state, $flexiform) {
  $form = parent::configureForm($form, $form_state, $flexiform);
  $form['required'] = array(
    '#type' => 'checkbox',
    '#title' => t('This field is required'),
    '#default_value' => !empty($this->settings['required']),
  );
  return $form;
}