added admin settings for advanced search
This commit is contained in:
parent
8f32d4e98b
commit
e9a136db4c
@ -68,6 +68,19 @@ function materio_search_api_settings(){
|
||||
);
|
||||
}
|
||||
|
||||
$vocabularies = taxonomy_get_vocabularies();
|
||||
// dsm($vocabularies, 'vocabularies');
|
||||
foreach ($vocabularies as $vid => $voc){
|
||||
$vocs_options[$vid] = $voc->name;
|
||||
}
|
||||
|
||||
$form['advancedsearchvocs'] = array(
|
||||
'#type'=>'select',
|
||||
'#options'=>$vocs_options,
|
||||
'#default_value' => variable_get('advancedsearchvocs', array()),
|
||||
'#title' => t('Advanced Search Vocabularies'),
|
||||
'#multiple' => true,
|
||||
);
|
||||
|
||||
return system_settings_form($form);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user