You are here

function apachesolr_mlt_add_block_form_submit in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr.admin.inc \apachesolr_mlt_add_block_form_submit()
  2. 6 apachesolr.admin.inc \apachesolr_mlt_add_block_form_submit()

Form submission handler for apachesolr_mlt_add_block_form

See also

apachesolr_mlt_add_block_form()

File

./apachesolr.admin.inc, line 529
Administrative pages for the Apache Solr framework.

Code

function apachesolr_mlt_add_block_form_submit($form, &$form_state) {
  apachesolr_mlt_save_block($form_state['values']);
  drupal_set_message('New content recommendation block created.  Drag it into a region to enable it');
  $form_state['redirect'] = 'admin/build/block';
}