function og_manage in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_manage()
- 5 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 338
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);
}