Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a patch that modifies the _token_insert_entity_entity_type_titles
module to call the alter_entity_type_titles
hook before returning the type titles array. It also creates a token_insert_entity.api.php file to describe the new hook.
Comment | File | Size | Author |
---|---|---|---|
#1 | token_insert_entity-creates_hook_for_modifying_title_types-221957-1.patch | 1.37 KB | mcgowanm |
Comments
Comment #1
mcgowanm CreditAttribution: mcgowanm commentedComment #2
John Pitcairn CreditAttribution: John Pitcairn commentedThis would be better as a
drupal_alter()
, which makes this a duplicate of #2158703: Allow modules to alter the array of entity types and label property used to get the entity autocomplete title