You are here

function biblio_form_import_validate in Bibliography Module 5

File

./biblio.module, line 2865

Code

function biblio_form_import_validate($form_id, $form_values) {
  $op = $form_values['op'];
  $filetype = $form_values['filetype'];
  $edit = $_POST;
  if (!file_check_upload('file_upload')) {
    form_set_error('', t("You must provide a file name"));
  }
  if ($op == t('Import') && $filetype == '') {
    form_set_error('', t("You must select a file type"));
  }
}