function multiblock_delete_form_submit in MultiBlock 7
Same name and namespace in other branches
- 5 multiblock.module \multiblock_delete_form_submit()
- 6 multiblock.module \multiblock_delete_form_submit()
File
- ./
multiblock.module, line 248 - Enhances the block API, as provided by D7 Core.
Code
function multiblock_delete_form_submit($form, &$form_state) {
if (multiblock_delete($form_state['values']['delta'])) {
drupal_set_message(t('Block successfully deleted!'));
}
else {
drupal_set_message(t('There was a problem deleting the block'));
}
$form_state['redirect'] = 'admin/structure/block/instances';
}