public function OgVocabBehaviorHandler::is_empty_alter in OG Vocabulary 7
Alter the empty status of a field item.
Overrides EntityReference_BehaviorHandler_Abstract::is_empty_alter
See also
File
- plugins/
behavior/ OgVocabBehaviorHandler.class.php, line 35
Class
- OgVocabBehaviorHandler
- OG vocab behavior handler.
Code
public function is_empty_alter(&$empty, $item, $field) {
if (!empty($item['target_id']) && $item['target_id'] == 'autocreate') {
$empty = FALSE;
}
}