You are here

function headerimage_block_confirm_delete_submit in Header image 6

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

File

./headerimage.admin.inc, line 131
headerimage.admin.inc

Code

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