function avatar_selection_og_options in Avatar Selection 7
Get og options.
3 calls to avatar_selection_og_options()
- avatar_selection_edit_form in ./
avatar_selection.admin.inc - Create the form structure for listing the avatars and managing them in the 'Manage Avatars' tab under the Avatar Selection administration page.
- avatar_selection_roles_page in ./
avatar_selection.admin.inc - Returns appropriate avatar set by role or og for configuration.
- avatar_selection_upload_form in ./
avatar_selection.admin.inc - Create the form structure for uploading an avatar.
File
- ./
avatar_selection.admin.inc, line 880 - Administrative page callbacks for the avatar_selection module.
Code
function avatar_selection_og_options() {
$options = array();
foreach (node_load_multiple(og_get_all_group()) as $node) {
$options[$node->nid] = $node->title;
}
return $options;
}