function biblio_admin_orphans_form_validate in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \biblio_admin_orphans_form_validate()
- 6 biblio.admin.inc \biblio_admin_orphans_form_validate()
- 7.2 includes/biblio.admin.inc \biblio_admin_orphans_form_validate()
_state
Parameters
$form:
File
- includes/
biblio.admin.inc, line 2677 - biblio.admin.inc
Code
function biblio_admin_orphans_form_validate($form, &$form_state) {
$check_count = array_filter($form_state['values']['authors']);
if ($form_state['triggering_element']['#value'] == t('Delete Selected') && count($check_count) == 0) {
form_set_error('', t('No items selected.'));
}
}