You are here

function freelinking_page_form_validate in Freelinking 6.2

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

File

./freelinking.module, line 357

Code

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