'MyFieldTypeAutocompleteSynonymsBehavior', ); break; case 'another-behavior': return array( 'my-field-type-or-yet-another-field-type' => 'MyFieldTypeAnotherBehaviorSynonymsBehavior', ); break; } return array(); } /** * Alter info about available field-based synonyms behavior implementations. * * This hook is invoked right after * hook_synonyms_field_behavior_implementation_info() and is designed to let * modules overwrite implementation info from some other modules. For example, * if module A provides implementation for some field type, but your module has * a better version of that implementation, you would need to implement this * hook and to overwrite the implementation info. * * @param array $field_providers * Array of information about existing field-based synonyms behavior * implementations that was collected from modules * @param string $behavior * Name of the behavior for which the field-based synonyms behavior * implementations are being generated */ function hook_synonyms_provider_field_behavior_implementation_info_alter(&$field_providers, $behavior) { switch ($behavior) { case 'the-behavior-i-want': $field_providers['the-field-type-i-want'] = 'MyFieldTypeAutocompleteSynonymsBehavior'; break; } }