You are here

function biblio_citeproc_validate_csl_file in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_validate_csl_file()
  2. 7.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_validate_csl_file()

File

modules/CiteProc/biblio_citeproc.admin.inc, line 710

Code

function biblio_citeproc_validate_csl_file($file) {
  if ($file->source == 'import_csl_file') {
    $csl = file_get_contents($file->uri);
    return biblio_citeproc_validate_csl($csl);
  }
}