You are here

function apachesolr_mlt_block_defaults in Apache Solr Search 5.2

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

Merge supplied settings with the standard defaults..

2 calls to apachesolr_mlt_block_defaults()
apachesolr_mlt_block_form in ./apachesolr.admin.inc
Form to edit moreLikeThis block settings.
apachesolr_mlt_save_block in ./apachesolr.admin.inc
A helper function to save MLT block data.

File

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

Code

function apachesolr_mlt_block_defaults($block = array()) {
  return $block + array(
    'name' => '',
    'num_results' => '5',
    'mlt_fl' => array(
      'title' => 'title',
      'taxonomy_names' => 'taxonomy_names',
    ),
    'mlt_mintf' => '1',
    'mlt_mindf' => '1',
    'mlt_minwl' => '3',
    'mlt_maxwl' => '15',
    'mlt_maxqt' => '20',
  );
}