You are here

function og_node_delete_nongroup_form in Organic groups 6.2

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

Alter the node delete form for a non-group.

Redirect back to group home page after a delete.

1 call to og_node_delete_nongroup_form()
og_form_node_delete_confirm_alter in ./og.module
Implementation of hook_form_FORM_ID_alter() for node_delete_confirm.

File

./og.module, line 1939
Code for the Organic Groups module.

Code

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