function og_get_sql_args in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.module \og_get_sql_args()
- 5 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 og.module \og_get_sql_args()
Helper function for queries that need all group types.
4 calls to og_get_sql_args()
- og_all_groups_options in ./
og.module - Get a list of all groups accessible to the current user for posting.
- og_block_new in ./
og.module - Return a block with the latest groups.
- og_get_subscriptions in ./
og.module - Load all memberships for a given user.
- og_user in ./
og.module - Implementation of hook_user().
File
- ./
og.module, line 2279 - Code for the Organic Groups module.
Code
function og_get_sql_args() {
if ($types = og_get_types('group')) {
$in = 'IN (' . db_placeholders($types, "varchar") . ')';
}
else {
$in = 'IS NULL';
}
return array(
$types,
$in,
);
}