Revision b080c651
Added by Alexander Oppermann about 11 years ago
7.x/modules/cdm_dataportal/cdm_csv_export/cdm_csv_export.module | ||
---|---|---|
86 | 86 |
'#title' => t('Classification').':', |
87 | 87 |
'#default_value' => variable_get(CDM_TAXONOMICTREE_UUID, FALSE), |
88 | 88 |
'#options' => cdm_get_taxontrees_as_options(), |
89 |
'#attributes' => array('name' => 'classification'), |
|
89 |
'#attributes' => array( |
|
90 |
'name' => 'classification', |
|
91 |
'onchange' => 'return validateForm()'), |
|
90 | 92 |
); |
91 | 93 |
|
92 | 94 |
$form['redListField'] = array( |
... | ... | |
128 | 130 |
'id' => 'downloadTokenValueId', |
129 | 131 |
), |
130 | 132 |
); |
133 |
|
|
134 |
$form['dialogMessage'] = array( |
|
135 |
'#type' => 'hidden', |
|
136 |
'#attributes' => array( |
|
137 |
'name' => 'dialogMessage', |
|
138 |
'id' => 'dialogMessage', |
|
139 |
), |
|
140 |
); |
|
141 |
|
|
131 | 142 |
|
132 | 143 |
$form['regionFilter'] = array( |
133 | 144 |
'#type' => 'fieldset', |
... | ... | |
165 | 176 |
); |
166 | 177 |
|
167 | 178 |
$form['#action'] = url(variable_get('cdm_csv_export_webservice_url')); |
168 |
$form['#attributes'] = array('onsubmit' => 'return blockUIForDownload()'); |
|
179 |
$form['#attributes'] = array( |
|
180 |
'name' => 'exportForm', |
|
181 |
'onsubmit' => 'return blockUIForDownload()'); |
|
169 | 182 |
|
170 | 183 |
return $form; |
171 | 184 |
} |
Also available in: Unified diff
*added validation of form elements.