You are here

function biblio_admin_keyword_orphans_form_validate in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_keyword_orphans_form_validate()
  2. 7 includes/biblio.admin.inc \biblio_admin_keyword_orphans_form_validate()
  3. 7.2 includes/biblio.admin.inc \biblio_admin_keyword_orphans_form_validate()

File

./biblio.admin.inc, line 1936

Code

function biblio_admin_keyword_orphans_form_validate($form, &$form_state) {
  $check_count = array_filter($form_state['values']['keywords']);
  if (count($check_count) == 0) {
    form_set_error('', t('No items selected.'));
  }
}