function deploy_delete_plan_form_submit in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 deploy.module \deploy_delete_plan_form_submit()
Submit callback function for deploy_delete_plan_form();
File
- ./
deploy.plans.admin.inc, line 299 - Page handlers for deploy plan admin.
Code
function deploy_delete_plan_form_submit($form, &$form_state) {
db_query("DELETE FROM {deploy_plan_items} WHERE pid = %d", $form_state['values']['pid']);
db_query("DELETE FROM {deploy_plan} WHERE pid = %d", $form_state['values']['pid']);
drupal_set_message(t('Plan Deleted'));
drupal_goto("/admin/build/deploy/");
}