function apachesolr_search_mlt_delete_block_form_submit in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.admin.inc \apachesolr_search_mlt_delete_block_form_submit()
- 6.3 apachesolr_search.admin.inc \apachesolr_search_mlt_delete_block_form_submit()
File
- ./
apachesolr_search.admin.inc, line 1059 - Administrative settings for searching.
Code
function apachesolr_search_mlt_delete_block_form_submit($form, &$form_state) {
$blocks = apachesolr_search_load_all_mlt_blocks();
unset($blocks[$form_state['values']['delta']]);
variable_set('apachesolr_search_mlt_blocks', $blocks);
drupal_set_message(t('The block has been deleted.'));
$form_state['redirect'] = 'admin/config/search/apachesolr/search-pages';
}