Project

General

Profile

Revision b9cade28

IDb9cade2830ece3a6cb30ec077dc70c635b6c7616
Parent c6bed6e8
Child 819ee4a9

Added by Patrick Plitzner about 2 years ago

Evaluate preference for auto suggest in csv export module

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)