You are here

function redhen_note_delete_form in RedHen CRM 7

Form callback: confirmation form for deleting an note.

Parameters

$note: The ntoe object to be deleted.

See also

confirm_form()

1 string reference to 'redhen_note_delete_form'
redhen_note_menu in modules/redhen_note/redhen_note.module
Implements hook_menu().

File

modules/redhen_note/includes/redhen_note.forms.inc, line 88
Form definition and handling for redhen notes.

Code

function redhen_note_delete_form($form, &$form_state, $note) {
  $form_state['redhen_note'] = $note;
  $form['#submit'][] = 'redhen_note_delete_form_submit';
  $title = $note
    ->label();
  $form = confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $title,
  )), entity_uri('redhen_note', $note), '<p>' . t('Deleting this note cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}