You are here

function fb_admin_form_delete_submit in Drupal for Facebook 7.4

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

1 string reference to 'fb_admin_form_delete_submit'
fb_admin_application_edit_form in ./fb.admin.inc
Builds the form used to edit an application.

File

./fb.admin.inc, line 1081

Code

function fb_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['fba'] . '/delete',
    array(
      'query' => $destination,
    ),
  );
}