function user_import_get_groups in User Import 5.2
2 calls to user_import_get_groups()
- og_user_import_after_save in supported/
og.inc - Implementation of hook_user_import_after_save().
- og_user_import_form_fieldset in supported/
og.inc - Implementation of hook_user_import_form_fieldsets().
File
- ./
user_import.module, line 1631 - Import users from a comma separated file (csv).
Code
function user_import_get_groups() {
$og_type = variable_get('og_node_types', array(
'og',
));
$results = db_query("SELECT \n n.nid, n.title FROM {node} n INNER JOIN {og} og ON n.nid = og.nid \n WHERE n.status = 1 AND n.type IN ('%s') \n ORDER BY n.title", $og_type);
while ($group = db_fetch_object($results)) {
$groups[$group->nid] = $group->title;
}
return $groups;
}