You are here

public function RulesTaxonomyVocabularyWrapper::validate in Rules 7.2

Overridden to permit machine names as values.

Overrides EntityMetadataWrapper::validate

File

modules/rules_core.eval.inc, line 269
Contains rules core integration needed during evaluation.

Class

RulesTaxonomyVocabularyWrapper
A custom wrapper class for vocabularies.

Code

public function validate($value) {
  if (isset($value) && is_string($value)) {
    return TRUE;
  }
  return parent::validate($value);
}