You are here

public function OgVocabBehaviorHandler::access in OG Vocabulary 7

Determine if handler should appear.

Overrides EntityReference_BehaviorHandler_Abstract::access

File

plugins/behavior/OgVocabBehaviorHandler.class.php, line 8

Class

OgVocabBehaviorHandler
OG vocab behavior handler.

Code

public function access($field, $instance) {
  return $field['settings']['target_type'] == 'taxonomy_term' && $instance['widget']['type'] == 'og_vocab_complex';
}