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