You are here

function fb_app_admin_delete_confirm_form_submit 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_submit()
  2. 6.2 fb_app.admin.inc \fb_app_admin_delete_confirm_form_submit()

Execute node deletion

File

./fb_app.admin.inc, line 341

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_delete('fb_app')
      ->condition('fba_id', $fba_id)
      ->execute();
  }
  $form_state['redirect'] = FB_PATH_ADMIN_APPS;
}