function multiblock_delete_form_submit in MultiBlock 6
Same name and namespace in other branches
- 5 multiblock.module \multiblock_delete_form_submit()
- 7 multiblock.module \multiblock_delete_form_submit()
File
- ./
multiblock.module, line 180
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/build/block/instances';
}