You are here

function flipping_book_delete_confirm in Flipping Book 7

Form constructor for the flipping_book deletion confirmation form.

See also

flipping_book_delete_confirm_submit()

1 string reference to 'flipping_book_delete_confirm'
flipping_book_menu in ./flipping_book.module
Implements hook_menu().

File

includes/flipping_book.admin.inc, line 74
Flipping Book Admin UI.

Code

function flipping_book_delete_confirm($form, &$form_state, $flipping_book) {
  $form['#flipping_book'] = $flipping_book;

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