function fb_app_admin_delete_confirm_form_submit in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 fb_app.admin.inc \fb_app_admin_delete_confirm_form_submit()
- 7.3 fb_app.admin.inc \fb_app_admin_delete_confirm_form_submit()
Execute node deletion
File
- ./
fb_app.admin.inc, line 314
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;
}