function rules_scheduler_delete_task_submit in Rules 6
Same name and namespace in other branches
- 7.2 rules_scheduler/rules_scheduler.admin.inc \rules_scheduler_delete_task_submit()
Submit handler for deleting single tasks.
File
- rules_scheduler/
rules_scheduler.admin.inc, line 156 - Admin form for scheduling
Code
function rules_scheduler_delete_task_submit($form, &$form_state) {
db_query("DELETE FROM {rules_scheduler} WHERE tid = %d", $form_state['task']['tid']);
drupal_set_message(t("Task %label has been deleted.", array(
'%label' => $form_state['task']['tid'],
)));
$form_state['redirect'] = RULES_SCHEDULER_PATH;
}