You are here

function og_get_sql_args in Organic groups 5.2

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.3 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()
4 calls to og_get_sql_args()
og_all_groups_options in ./og.module
og_block_new in ./og.module
og_handler_filter_og_type in ./og_views.inc
og_user in ./og.module

File

./og.module, line 1857

Code

function og_get_sql_args() {
  $types = variable_get('og_node_types', array(
    'og',
  ));
  $in = implode(', ', array_fill(0, count($types), "'%s'"));
  return array(
    $types,
    $in,
  );
}