You are here

function _save_bibtex_maps in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/bibtexParse/biblio_bibtex.install \_save_bibtex_maps()
  2. 7.2 modules/bibtexParse/biblio_bibtex.install \_save_bibtex_maps()
2 calls to _save_bibtex_maps()
biblio_bibtex_install in modules/bibtexParse/biblio_bibtex.install
Implementation of hook_install().
_reset_bibtex_map in modules/bibtexParse/biblio_bibtex.install

File

modules/bibtexParse/biblio_bibtex.install, line 138
Database table creation for biblio_bibtex module.

Code

function _save_bibtex_maps() {
  $typemap = _get_bibtex_type_map();
  $typenames = _get_bibtex_type_names();
  $fieldmap = _get_bibtex_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'],
  ));

  //drupal_write_record('biblio_type_maps', $maps);
}