You are here

function globallink_block_receive_form_validate in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.5 globallink_block/globallink_block_receive.inc \globallink_block_receive_form_validate()

Validates block form input.

File

globallink_block/globallink_block_receive.inc, line 507

Code

function globallink_block_receive_form_validate($form, &$form_state) {
  $op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
  $pd4 = globallink_get_project_director_details();
  globallink_validate_project_director_details($pd4);
  if ($op != t('Update Selected')) {
    return;
  }
  $rids = array_filter($form_state['values']['table']);
  if (count($rids) == 0) {
    form_set_error('', t('No items selected.'));
  }
}