You are here

function og_get_sql_args in Organic groups 5.3

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.7 og.module \og_get_sql_args()
  5. 6.2 og.module \og_get_sql_args()
  6. 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 1897

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