You are here

function globallink_dashboard_active_validate in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_active_submissions.inc \globallink_dashboard_active_validate()

Validates form actions for active GlobalLink submissions.

File

./globallink_active_submissions.inc, line 330

Code

function globallink_dashboard_active_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.'));
    }
  }
}