tmgmt_entity.api.php in Translation Management Tool 7
Hooks provided by the Entity Translation Management module.
File
sources/entity/tmgmt_entity.api.phpView source
<?php
/**
* @file
* Hooks provided by the Entity Translation Management module.
*/
/**
* @addtogroup tmgmt_source
* @{
*/
/**
* Allows to alter $query used to list entities on specific entity type overview
* pages.
*
* @see TMGMTEntityDefaultSourceUIController
*/
function hook_tmgmt_entity_type_list_query_alter(EntityFieldQuery $query) {
$query
->entityCondition('type', array(
'article',
'page',
));
}
/**
* @} End of "addtogroup tmgmt_source".
*/
Functions
Name![]() |
Description |
---|---|
hook_tmgmt_entity_type_list_query_alter | Allows to alter $query used to list entities on specific entity type overview pages. |