You are here

function dynamic_banner_admin_delete in Dynamic Banner 6

Same name and namespace in other branches
  1. 7.2 dynamic_banner.module \dynamic_banner_admin_delete()
  2. 7 includes/callbacks.inc \dynamic_banner_admin_delete()
  3. 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 includes/callbacks.inc
Execute banners deletion

File

includes/callbacks.inc, line 293
Dynamic Banner Admin Pages and various other functions to make them work Most of the code in this file was derived from path module

Code

function dynamic_banner_admin_delete($dbid = 0) {
  db_query("DELETE FROM {dynamic_banner} WHERE dbid ='%d'", $dbid);
  drupal_set_message(t('The banner has been deleted, the image still exists though'));
}