You are here

function feed_import_element_validate_not_empty in Feed Import 8

Same name and namespace in other branches
  1. 7.3 feed_import.module \feed_import_element_validate_not_empty()

Checks if an elmeent is not empty.

1 string reference to 'feed_import_element_validate_not_empty'
feed_import_feed_import_reader_info in ./feed_import.module
Implements hook_feed_import_reader_info().

File

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

Code

function feed_import_element_validate_not_empty($element, &$form_state) {
  if (!strlen($element['#value'])) {
    form_error($element, t('%name must not be empty.', array(
      '%name' => $element['#title'],
    )));
  }
}