You are here

function apachesolr_mlt_block_form_submit in Apache Solr Search 5

function apachesolr_mlt_block_submit()

Parameters

string $form_id the form ID:

array $form_values an array of from values:

File

contrib/apachesolr_mlt/apachesolr_mlt.module, line 255

Code

function apachesolr_mlt_block_form_submit($form_id, $form_values) {
  if ($form_id == 'apachesolr_mlt_block_form') {
    $form_values['mlt_fl'] = array_diff($form_values['mlt_fl'], array(
      0,
    ));
    apachesolr_mlt_save_block($form_values, $form_values['block_id']);
  }
}