function spaces_og_wrapper in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_og.module \spaces_og_wrapper()
Spaces OG wrapper
1 string reference to 'spaces_og_wrapper'
- spaces_menu in ./
spaces.module
File
- ./
spaces.module, line 1249
Code
function spaces_og_wrapper($op) {
switch ($op) {
case 'member-list':
if (og_is_node_admin(node_load(spaces_gid())) && user_access('ucreate users')) {
$links = context_get('spaces', 'links');
$links = $links ? $links : array();
$links['ucreate'] = array(
'title' => t('Member'),
'href' => 'member-add',
);
context_set('spaces', 'links', $links);
}
return og_menu_check('og_list_users_page', spaces_gid());
case 'member-add':
if (module_exists('ucreate')) {
$form = drupal_get_form('ucreate_user_form');
}
return $form;
}
}