You are here

function node_import_check_email in Node import 6

Check if the value is a valid email address.

Uses: nothing.

Related topics

1 string reference to 'node_import_check_email'
node_import_fields in ./node_import.inc
Returns a list of available content fields for given node_import type.

File

./node_import.inc, line 1221
Public API of the Node import module.

Code

function node_import_check_email(&$value, $field, $options, $preview) {
  if (!valid_email_address($value)) {
    node_import_input_error(t('Input error: %value is not a valid e-mail address.', array(
      '%value' => $value,
    )));
    return FALSE;
  }
  return TRUE;
}