You are here

function og_manage in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_manage()
  2. 5.2 og.module \og_manage()
  3. 5.3 og.module \og_manage()
  4. 5.7 og.module \og_manage()
  5. 6.2 og.pages.inc \og_manage()
  6. 6 og.module \og_manage()
1 string reference to 'og_manage'
og_menu in ./og.module

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);
}