You are here

function supersized_node_settings_delete_submit in Supersized 7

Same name and namespace in other branches
  1. 8 supersized.module \supersized_node_settings_delete_submit()

Supersized setting delete button handler.

1 string reference to 'supersized_node_settings_delete_submit'
supersized_node_settings_form in ./supersized.module
Supersized setting form for node.

File

./supersized.module, line 821
Supersized module file.

Code

function supersized_node_settings_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $nid = $form_state['values']['nid'];
  $form_state['redirect'] = array(
    'node/' . $nid . '/supersized/delete',
    array(
      'query' => $destination,
    ),
  );
}