You are here

public function FlexiformElementUserPass::formSubmit in Flexiform 7

Submit the form element.

Overrides FlexiformElement::formSubmit

File

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

Class

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

Code

public function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
  $pass = $this
    ->formExtractValues($form, $form_state, $entity);
  require_once DRUPAL_ROOT . '/' . variable_get('password_inc', 'includes/password.inc');
  $entity->pass = user_hash_password(trim($pass));
}