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.
Problem/Motivation
Currently there is no way of altering the TMGMT Entity sources overview page. It might be useful to have more control over the query that is ran in order to generate that page. A possible application could be building an Organic Group integration that would list only entities belonging to that group.
Proposed resolution
The solution would be adding a query alteration tag in tmgmt_entity_get_translatable_entities() right after creating the main query constructor:
...
$query = db_select($entity_info['base table'], 'e');
+ $query->addTag('tmgmt_entity_get_translatable_entities');
...
Remaining tasks
None.
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | query_alteration_for-2307531-5.patch | 535 bytes | sasanikolic |
#1 | 2307531-tmgmt_entity-query-alteration.patch | 558 bytes | ademarco |
Comments
Comment #1
ademarco CreditAttribution: ademarco commentedAttaching patch.
Comment #2
BerdirThanks, committed to 7.x-1.x.
Comment #4
miro_dietikerComment #5
sasanikolic CreditAttribution: sasanikolic commentedPatch for 8.x.
Comment #7
BerdirCommitted.