You are here

function apachesolr_search_mlt_add_block_form_submit in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr_search.admin.inc \apachesolr_search_mlt_add_block_form_submit()
  2. 7 apachesolr_search.admin.inc \apachesolr_search_mlt_add_block_form_submit()

File

./apachesolr_search.admin.inc, line 935
Administrative settings for searching.

Code

function apachesolr_search_mlt_add_block_form_submit($form, &$form_state) {
  apachesolr_search_mlt_save_block($form_state['values']);
  $block_message = t('New More like this block created. <a href="!configure">Configure</a> this block in the Block administration', array(
    '!configure' => url('admin/structure/block'),
  ));
  drupal_set_message($block_message);
  $form_state['redirect'] = 'admin/config/search/apachesolr/search-pages';
}