You are here

function feed_import_element_validate_not_numeric in Feed Import 7.3

Same name and namespace in other branches
  1. 8 feed_import.module \feed_import_element_validate_not_numeric()

Validates a not numeric string.

1 string reference to 'feed_import_element_validate_not_numeric'
feed_import_feed_import_filter_info in ./feed_import.module
Implements hook_feed_import_filter_info().

File

./feed_import.module, line 2787
User interface, cron functions for feed_import module

Code

function feed_import_element_validate_not_numeric($element, &$form_state, $form) {
  if (is_numeric($element['#value'])) {
    form_error($element, t('%title must not be numeric!', array(
      '%title' => $element['#title'],
    )));
  }
}