function globallink_webform_active_form_validate in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_webform/globallink_webform_active_submissions.inc \globallink_webform_active_form_validate()
Validates form actions for active webform submissions.
File
- globallink_webform/
globallink_webform_active_submissions.inc, line 306
Code
function globallink_webform_active_form_validate($form, &$form_state) {
$pd4 = globallink_get_project_director_details();
globallink_validate_project_director_details($pd4);
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
if ($op == t('Cancel Selected Documents')) {
$rids = array_filter($form_state['values']['table']);
if (!isset($rids) || empty($rids)) {
form_set_error('', t('No items selected.'));
}
}
}