public function RulesOrganigramsWrapper::validate in Organigrams 7
Overridden to permit machine names as values.
Parameters
string $value: String to validate.
Return value
bool TRUE is $value is a string, otherwise FALSE.
Overrides EntityMetadataWrapper::validate
File
- ./
organigrams.rules.inc, line 210 - Rules integration for the organigrams module.
Class
- RulesOrganigramsWrapper
- Custom wrapper class for organigrams for loading organigrams by machine name.
Code
public function validate($value) {
if (isset($value) && is_string($value)) {
return TRUE;
}
return parent::validate($value);
}