function apachesolr_mlt_delete_block_form_submit in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 apachesolr.admin.inc \apachesolr_mlt_delete_block_form_submit()
- 5 contrib/apachesolr_mlt/apachesolr_mlt.module \apachesolr_mlt_delete_block_form_submit()
- 6.2 apachesolr.admin.inc \apachesolr_mlt_delete_block_form_submit()
File
- ./
apachesolr.admin.inc, line 706 - Administrative pages for the Apache Solr framework.
Code
function apachesolr_mlt_delete_block_form_submit($form, &$form_state) {
$blocks = variable_get('apachesolr_mlt_blocks', array());
unset($blocks[$form_state['values']['delta']]);
variable_set('apachesolr_mlt_blocks', $blocks);
drupal_set_message(t('The block has been deleted.'));
$form_state['redirect'] = 'admin/build/block';
}