You are here

protected function FeedsTermProcessor::entityValidate in Feeds 7.2

Validates a term.

Overrides FeedsProcessor::entityValidate

File

plugins/FeedsTermProcessor.inc, line 60
FeedsTermProcessor class.

Class

FeedsTermProcessor
Feeds processor plugin. Create taxonomy terms from feed items.

Code

protected function entityValidate($term, FeedsSource $source = NULL) {
  parent::entityValidate($term);
  if (drupal_strlen($term->name) == 0) {
    throw new FeedsValidationException(t('Term name missing.'));
  }
}