You are here

function fb_app_admin_form_delete_submit in Drupal for Facebook 7.3

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

Button submit function. Use has clicked delete, send them to confirm page.

1 string reference to 'fb_app_admin_form_delete_submit'
fb_app_edit_form in ./fb_app.admin.inc
Builds the form used to edit an application.

File

./fb_app.admin.inc, line 309

Code

function fb_app_admin_form_delete_submit($form, &$form_state) {
  $destination = '';
  if (isset($_REQUEST['destination'])) {
    $destination = drupal_get_destination();
    unset($_REQUEST['destination']);
  }
  $fb_app = $form['#fb_app'];
  $form_state['redirect'] = array(
    FB_PATH_ADMIN_APPS . '/' . $fb_app->label . '/fb_app/delete',
    array(
      'query' => $destination,
    ),
  );
}