function feed_import_element_validate_not_numeric in Feed Import 8
Same name and namespace in other branches
- 7.3 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 662 - 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'],
)));
}
}