function headerimage_block_confirm_delete_submit in Header image 7
Same name and namespace in other branches
- 5 headerimage.module \headerimage_block_confirm_delete_submit()
- 6 headerimage.admin.inc \headerimage_block_confirm_delete_submit()
File
- ./
headerimage.admin.inc, line 155 - headerimage.admin.inc
Code
function headerimage_block_confirm_delete_submit($form, &$form_state) {
db_delete('headerimage_block')
->condition('delta', $form_state['values']['delta'])
->execute();
db_delete('headerimage')
->condition('block', $form_state['values']['delta'])
->execute();
drupal_set_message(t('Header Image block deleted'));
$form_state['redirect'] = 'admin/structure/headerimage';
}