You are here

function value_is_email_or_token in Value is 7

Checks for e-mail address(es) or token(s).

File

./value_is.module, line 206
All the element validators for #element_validate.

Code

function value_is_email_or_token($element, &$form_state, $form) {
  $element['#allow_tokens'] = TRUE;
  return value_is_email($element, $form_state, $form);
}