function globallink_locale_validate in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink_locale_mapping.inc \globallink_locale_validate()
- 7.6 globallink_locale_mapping.inc \globallink_locale_validate()
Handles validation of globallink_locale form.
File
- ./
globallink_locale_mapping.inc, line 138 - 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'] : '';
$rids = array_filter($form_state['values']['table']);
if (count($rids) == 0 && $op === 'Delete') {
form_set_error('', t('No items selected.'));
}
if ($form_state['triggering_element'] != 'globallink_locale_mapping_submit') {
return;
}
}