function og_get_sql_args in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_get_sql_args()
- 5.2 og.module \og_get_sql_args()
- 5.3 og.module \og_get_sql_args()
- 5.7 og.module \og_get_sql_args()
- 6.2 og.module \og_get_sql_args()
- 6 og.module \og_get_sql_args()
5 calls to og_get_sql_args()
- og_all_groups_options in ./
og.module - og_block_new in ./
og.module - og_get_subscriptions in ./
og.module - og_handler_filter_og_type in ./
og_views.inc - og_user in ./
og.module
File
- ./
og.module, line 2133
Code
function og_get_sql_args() {
if ($types = og_get_types('group')) {
$in = 'IN (' . implode(', ', array_fill(0, count($types), "'%s'")) . ')';
}
else {
$in = 'IS NULL';
}
return array(
$types,
$in,
);
}