Revision b9cade28
Added by Patrick Plitzner over 5 years ago
modules/cdm_dataportal/cdm_csv_export/cdm_csv_export.module | ||
---|---|---|
76 | 76 |
function update_classification_selected($form, &$form_state) { |
77 | 77 |
unset($form_state['input']['csv_export_taxon_select'], $form_state['values']['csv_export_taxon_select']); |
78 | 78 |
$tree = $form_state['input']['classificationUuid']; |
79 |
$form['csv_export_taxon_select']['#autocomplete_path'] = 'cdm_dataportal/taxon/autosuggest/'.$tree.'///'; |
|
79 |
if(variable_get(SIMPLE_SEARCH_AUTO_SUGGEST)) { |
|
80 |
$form['csv_export_taxon_select']['#autocomplete_path'] = 'cdm_dataportal/taxon/autosuggest/' . $tree . '///'; |
|
81 |
} |
|
80 | 82 |
$form['csv_export_taxon_select']['#value'] = ''; |
81 | 83 |
return form_builder($form['#id'], $form['csv_export_taxon_select'], $form_state); |
82 | 84 |
} |
Also available in: Unified diff
Evaluate preference for auto suggest in csv export module