You are here

function og_get_sql_args in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og.module \og_get_sql_args()
  2. 5 og.module \og_get_sql_args()
  3. 5.2 og.module \og_get_sql_args()
  4. 5.3 og.module \og_get_sql_args()
  5. 5.7 og.module \og_get_sql_args()
  6. 6.2 og.module \og_get_sql_args()
4 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
Load all memberships for a given user.
og_user in ./og.module

File

./og.module, line 2202

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,
  );
}