function password_confirm_validate


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 password_confirm_validate($element, &$element_state)
cle7 password_confirm_validate($element, &$element_state)
elmsmedia7 password_confirm_validate($element, &$element_state)
icor7 password_confirm_validate($element, &$element_state)
meedjum_blog7 password_confirm_validate($element, &$element_state)
mooc7 password_confirm_validate($element, &$element_state)

Validates a password_confirm element.

Related topics

1 string reference to 'password_confirm_validate'
form_process_password_confirm in includes/
Expand a password_confirm field into two text boxes.


includes/, line 2916
Functions for form and batch generation and processing.


function password_confirm_validate($element, &$element_state) {
  $pass1 = trim($element['pass1']['#value']);
  $pass2 = trim($element['pass2']['#value']);
  if (!empty($pass1) || !empty($pass2)) {
    if (strcmp($pass1, $pass2)) {
      form_error($element, t('The specified passwords do not match.'));
  elseif ($element['#required'] && !empty($element_state['input'])) {
    form_error($element, t('Password field is required.'));

  // Password field must be converted from a two-element array into a single
  // string regardless of validation results.
  form_set_value($element['pass1'], NULL, $element_state);
  form_set_value($element['pass2'], NULL, $element_state);
  form_set_value($element, $pass1, $element_state);

  return $element;




Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.