You are here

function _save_csl_maps in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/biblio_citeproc.install \_save_csl_maps()
  2. 7.2 modules/CiteProc/biblio_citeproc.install \_save_csl_maps()
2 calls to _save_csl_maps()
biblio_citeproc_install in modules/CiteProc/biblio_citeproc.install
_reset_csl_map in modules/CiteProc/biblio_citeproc.install

File

modules/CiteProc/biblio_citeproc.install, line 285

Code

function _save_csl_maps() {
  $typemap = _get_csl_type_map();
  $typenames = _get_csl_type_names();
  $fieldmap = _get_csl_field_map();
  $maps = array_merge($typemap, $typenames, $fieldmap);
  db_query("INSERT INTO {biblio_type_maps} (format,type_map,type_names,field_map) VALUES ('%s','%s','%s','%s')", array(
    $maps['format'],
    $maps['type_map'],
    $maps['type_names'],
    $maps['field_map'],
  ));
}