function og_manage in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_manage()
- 5.2 og.module \og_manage()
- 5.3 og.module \og_manage()
- 5.7 og.module \og_manage()
- 6.2 og.pages.inc \og_manage()
- 6 og.module \og_manage()
File
- ./
og.module, line 346
Code
function og_manage($gid) {
global $user;
// warn users who can't receive mail anyway
if ($txt = user_validate_mail($user->mail)) {
drupal_set_message($txt, 'error');
return '';
}
$group = node_load($gid);
$bc[] = array(
'path' => "og",
'title' => t('Groups'),
);
$bc[] = array(
'path' => "node/{$gid}",
'title' => $group->title,
);
menu_set_location($bc);
return drupal_get_form('og_manage_form', $group);
}