You are here

function apachesolr_mlt_delete_block_form_submit in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr.admin.inc \apachesolr_mlt_delete_block_form_submit()
  2. 5 contrib/apachesolr_mlt/apachesolr_mlt.module \apachesolr_mlt_delete_block_form_submit()
  3. 6 apachesolr.admin.inc \apachesolr_mlt_delete_block_form_submit()

File

./apachesolr.admin.inc, line 813
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';
}