addtoany.api.php 371 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Hooks specific to the AddToAny module.
  5. */
  6. /**
  7. * Alter the entity types that the AddToAny pseudo-field is available for.
  8. *
  9. * @param array $types
  10. * The entity types.
  11. */
  12. function hook_addtoany_entity_types_alter(&$types) {
  13. // Add the "taxonomy_term" entity type.
  14. $types[] = 'taxonomy_term';
  15. }
  16. /**
  17. * @} End of "addtogroup addtoany".
  18. */