You are here

function feed_import_element_validate_updates_only in Feed Import 8

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

Validates Feed Import processor updates only field.

1 string reference to 'feed_import_element_validate_updates_only'
feed_import_feed_import_processor_info in ./feed_import.module
Implements hook_feed_import_processor_info().

File

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

Code

function feed_import_element_validate_updates_only($element, &$form_state, $form) {
  if ($element['#value'] && $form_state['values']['options']['skip_imported']) {
    form_error($element, t('"%title" must not be used if "Skip already imported items" is also used. Doing so, the import makes no sense!', array(
      '%title' => $element['#title'],
    )));
  }
}