@@ -9,19 +9,24 @@ function materio_search_api_settings(){
|
||||
$index_options[$index->machine_name] = $index->name;
|
||||
}
|
||||
|
||||
$form['mainsearchindex'] = array(
|
||||
'#type'=>'select',
|
||||
'#options'=>$index_options,
|
||||
'#default_value' => variable_get('mainsearchindex', -1),
|
||||
'#title' => t('Main search api index'),
|
||||
);
|
||||
$languages = locale_language_list();
|
||||
// dsm($languages, 'languages');
|
||||
|
||||
foreach ($languages as $lcode => $name) {
|
||||
$form['mainsearchindex_'.$lcode] = array(
|
||||
'#type'=>'select',
|
||||
'#options'=>$index_options,
|
||||
'#default_value' => variable_get('mainsearchindex_'.$lcode, -1),
|
||||
'#title' => t('Main search api index for %lang contents.', array('%lang'=>$name)),
|
||||
);
|
||||
|
||||
$form['autocompletesearchindex'] = array(
|
||||
'#type'=>'select',
|
||||
'#options'=>$index_options,
|
||||
'#default_value' => variable_get('autocompletesearchindex', -1),
|
||||
'#title' => t('Autocomplete search api index'),
|
||||
);
|
||||
$form['autocompletesearchindex_'.$lcode] = array(
|
||||
'#type'=>'select',
|
||||
'#options'=>$index_options,
|
||||
'#default_value' => variable_get('autocompletesearchindex_'.$lcode, -1),
|
||||
'#title' => t('Autocomplete search api index for %lang contents.', array('%lang'=>$name)),
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: select the activated viewmodes for change view mode and selected view mode
|
||||
$entity_infos = entity_get_info();
|
||||
|
||||
Reference in New Issue
Block a user