function globallink_locale_validate in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink_locale_mapping.inc \globallink_locale_validate()
- 7.5 globallink_locale_mapping.inc \globallink_locale_validate()
Handles validation of globallink_locale form.
File
- ./
globallink_locale_mapping.inc, line 139 - globallink_locale_mapping.inc is a file that contains most functions needed on the Locale Mapping UI.
Code
function globallink_locale_validate($form, &$form_state) {
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
if ($form_state['triggering_element'] != 'globallink_locale_mapping_submit') {
return;
}
$rids = array_filter($form_state['values']['table']);
if (count($rids) == 0) {
form_set_error('', t('No items selected.'));
}
}