function group_query_group_overview_alter in Group 7
Implements hook_query_TAG_alter().
Alters the query that generates the group overview table on the admin/group page by using the selected filters. You can find the full query in group_groups_form().
See also
File
- ./
group.module, line 186 - Main module code for the Group project.
Code
function group_query_group_overview_alter(QueryAlterableInterface $query) {
// Retrieve the selected filters.
$filters = $query
->getMetaData('filters');
if (isset($filters['type'])) {
$query
->condition('g.type', $filters['type']);
}
}