function ad_notify_confirm_delete_submit in Advertisement 5
Same name and namespace in other branches
- 5.2 notify/ad_notify.module \ad_notify_confirm_delete_submit()
- 6 notify/ad_notify.module \ad_notify_confirm_delete_submit()
Delete a specified notification from the database.
File
- notify/
ad_notify.module, line 535 - Receive email notifications regarding ads.
Code
function ad_notify_confirm_delete_submit($form_id, $form_values) {
db_query('DELETE FROM {ad_notify} WHERE notid = %d', $form_values['notid']);
drupal_set_message('Notification deleted.');
drupal_goto('node/' . $form_values['aid'] . '/adowners/' . $form_values['uid'] . '/notifications');
}