You are here

function supersized_node_settings_delete_confirm in Supersized 7

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

Supersized setting delete confirm form.

1 string reference to 'supersized_node_settings_delete_confirm'
supersized_menu in ./supersized.module
Implements hook_menu().

File

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

Code

function supersized_node_settings_delete_confirm($form, &$form_state, $node) {
  $form['#node'] = $node;

  // Always provide entity id in the same form key as in the entity edit form.
  $form['nid'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  return confirm_form($form, t('Are you sure you want to delete Supersized settings of %title?', array(
    '%title' => $node->title,
  )), 'node/' . $node->nid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}