function word_link_exchange_export_form_validate in Word Link 8
Same name and namespace in other branches
- 7.2 modules/word_link_exchange/word_link_exchange.module \word_link_exchange_export_form_validate()
- 7 modules/word_link_exchange/word_link_exchange.module \word_link_exchange_export_form_validate()
Validate for word_link_exchange_export_form.
File
- modules/
word_link_exchange/ word_link_exchange.module, line 411 - Code for the Word link exchange module.
Code
function word_link_exchange_export_form_validate($form, &$form_state) {
// If custom delimiter is empty then show error.
if ($form_state['values']['delimiter'] == 'custom_delimiter' && $form_state['values']['delimiter_custom'] === '') {
form_set_error('delimiter_custom', t('Delimiter is required.'));
}
}