You are here

function bean_delete_confirm in Bean (for Drupal 7) 7

Menu callback -- ask for confirmation of bean deletion

1 string reference to 'bean_delete_confirm'
bean_menu in ./bean.module
Implements hook_menu().

File

includes/bean.pages.inc, line 472
Bean Functions

Code

function bean_delete_confirm($form, &$form_state, $bean) {
  $form['#bean'] = $bean;
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $bean
      ->label(),
  )), $bean
    ->viewUrl(), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}