function dynamic_banner_admin_delete in Dynamic Banner 7.2
Same name and namespace in other branches
- 6 includes/callbacks.inc \dynamic_banner_admin_delete()
- 7 includes/callbacks.inc \dynamic_banner_admin_delete()
- 8.x dynamic_banner.module \dynamic_banner_admin_delete()
Post-confirmation; delete a Banner
1 call to dynamic_banner_admin_delete()
- dynamic_banner_admin_delete_confirm_submit in ./
dynamic_banner.module - Execute banners deletion.
File
- ./
dynamic_banner.module, line 891 - Distributed under GNU GPL version 3
Code
function dynamic_banner_admin_delete($dbid = 0) {
db_delete('dynamic_banner')
->condition('dbid', $dbid)
->execute();
drupal_set_message(t('The banner has been deleted, the image still exists however.'));
}