function og_handler_filter_picg in Organic groups 5.8
Same name and namespace in other branches
- 5 og_views.inc \og_handler_filter_picg()
- 5.3 og_views.inc \og_handler_filter_picg()
- 5.7 og_views.inc \og_handler_filter_picg()
Lovely filter handler which restricts posts to the current group. Useful for group related blocks.
Return value
void
1 string reference to 'og_handler_filter_picg'
- og_views_tables in ./
og_views.inc - Implementation of the hook_views_tables()
File
- ./
og_views.inc, line 1392
Code
function og_handler_filter_picg($op, $filter, $filterinfo, &$query) {
$query
->ensure_table('og_ancestry');
$query
->add_where("og_ancestry.group_nid = ***CURRENT_GID***");
}