You are here

function fb_app_admin_delete_confirm_form in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_app.admin.inc \fb_app_admin_delete_confirm_form()
  2. 6.2 fb_app.admin.inc \fb_app_admin_delete_confirm_form()

Form creator -- ask for confirmation of deletion

1 string reference to 'fb_app_admin_delete_confirm_form'
fb_app_menu in ./fb_app.module
Implements hook_menu().

File

./fb_app.admin.inc, line 323

Code

function fb_app_admin_delete_confirm_form($form, &$form_state, $fb_app) {
  $form['fba_id'] = array(
    '#type' => 'value',
    '#value' => $fb_app->fba_id,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $fb_app->title,
  )), isset($_GET['destination']) ? $_GET['destination'] : FB_PATH_ADMIN_APPS . '/' . $fb_app->label, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}