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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ademarco’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
558 bytes

Attaching patch.

Berdir’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Needs review » Patch (to be ported)

Thanks, committed to 7.x-1.x.

  • Berdir committed cefe833 on 7.x-1.x authored by antoniodemarco
    Issue #2307531 by antoniodemarco: Added query alter tag for tmgmt_entity...
miro_dietiker’s picture

Issue tags: +8.x release target
sasanikolic’s picture

Status: Patch (to be ported) » Needs review
FileSize
535 bytes

Patch for 8.x.

Berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.