You are here

function freelinking_page_form_validate in Freelinking 5

Same name and namespace in other branches
  1. 6 freelinking.module \freelinking_page_form_validate()
  2. 6.2 freelinking.module \freelinking_page_form_validate()

File

./freelinking.module, line 144

Code

function freelinking_page_form_validate($form_id, $form_values) {
  $links = array_filter($form_values['links']);
  if (count($links) == 0) {
    form_set_error('', t('No items selected.'));
  }
}