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