You are here

function supersized_node_settings_delete_confirm_submit in Supersized 7

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

Supersized setting delete confirm form handler.

File

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

Code

function supersized_node_settings_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $node = node_load($form_state['values']['nid']);
    supersized_delete_node_settings($form_state['values']['nid']);
    drupal_set_message(t('Supersized of %title has been deleted.', array(
      '%title' => $node->title,
    )));
  }
  $form_state['redirect'] = 'node/' . $form_state['values']['nid'];
}