You are here

function headerimage_block_confirm_delete_submit in Header image 5

Same name and namespace in other branches
  1. 6 headerimage.admin.inc \headerimage_block_confirm_delete_submit()
  2. 7 headerimage.admin.inc \headerimage_block_confirm_delete_submit()

File

./headerimage.module, line 241
headerimage.module Conditionally display an node in a block.

Code

function headerimage_block_confirm_delete_submit($form_id, $form_values) {
  db_query("DELETE from {headerimage_block} WHERE delta = %d", $form_values['delta']);
  db_query("DELETE from {headerimage} WHERE block = %d", $form_values['delta']);
  drupal_set_message(t('Header Image block deleted'));
  return 'admin/settings/headerimage';
}