You are here

function biblio_citeproc_csl_file_import_submit in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_csl_file_import_submit()
  2. 7.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_csl_file_import_submit()
1 string reference to 'biblio_citeproc_csl_file_import_submit'
biblio_citeproc_style_manager_form in modules/CiteProc/biblio_citeproc.admin.inc

File

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

Code

function biblio_citeproc_csl_file_import_submit($form, &$form_state) {
  $validators = array(
    'file_validate_extensions' => array(
      'csl xml',
    ),
    'biblio_citeproc_validate_csl_file' => array(),
  );
  if ($import_file = file_save_upload('import_csl_file', $validators)) {
    $csl = file_get_contents($import_file->uri);

    // If (biblio_citeproc_validate_csl($csl)) {.
    _install_csl($import_file->filename, $csl);

    // }.
  }
}