You are here

function og_node_delete_nongroup_form in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_node_delete_nongroup_form()
  2. 5.2 og.module \og_node_delete_nongroup_form()
  3. 5.3 og.module \og_node_delete_nongroup_form()
  4. 5.7 og.module \og_node_delete_nongroup_form()
  5. 6.2 og.module \og_node_delete_nongroup_form()
  6. 6 og.module \og_node_delete_nongroup_form()
1 call to og_node_delete_nongroup_form()
og_form_alter in ./og.module

File

./og.module, line 1604

Code

function og_node_delete_nongroup_form(&$form) {
  if ($groupnode = og_get_group_context()) {
    $form['#redirect'] = "node/{$groupnode->nid}";
  }
}