function hook_addtoany_entity_types_alter in AddToAny Share Buttons 8
Alter the entity types that the AddToAny pseudo-field is available for.
Parameters
array $types: The entity types.
2 invocations of hook_addtoany_entity_types_alter()
- AddToAnySettingsForm::buildForm in src/
Form/ AddToAnySettingsForm.php - Form constructor.
- addtoany_entity_extra_field_info in ./
addtoany.module - Implements hook_entity_extra_field_info().
File
- ./
addtoany.api.php, line 14 - Hooks specific to the AddToAny module.
Code
function hook_addtoany_entity_types_alter(&$types) {
// Add the "taxonomy_term" entity type.
$types[] = 'taxonomy_term';
}