You are here

function fb_app_admin_delete_confirm_form_submit in Drupal for Facebook 6.2

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

Execute node deletion

File

./fb_app.admin.inc, line 289

Code

function fb_app_admin_delete_confirm_form_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $fba_id = $form_state['values']['fba_id'];

    // TODO: invoke hooks so that third-party modules may act.
    db_query("DELETE FROM {fb_app} WHERE fba_id = %d", $fba_id);
  }
  $form_state['redirect'] = FB_PATH_ADMIN_APPS;
}