You are here

function biblio_set_map in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_set_map()
  2. 7.2 biblio.module \biblio_set_map()

Parameters

string $type: (can be one of "type_names", "type_map" or "field_map")

string $format: (tagged, ris, endnote_xml8 etc...)

array $map:

5 calls to biblio_set_map()
biblio_admin_field_mapper_form_submit in includes/biblio.admin.inc
_state
biblio_admin_io_mapper_add_form_field_submit in includes/biblio.admin.inc
_state
biblio_admin_io_mapper_add_form_pubtype_submit in includes/biblio.admin.inc
_state
biblio_admin_type_mapper_form_submit in includes/biblio.admin.inc
_state
biblio_citeproc_update_7004 in modules/CiteProc/biblio_citeproc.install
Corrects an error in the field_map.

File

./biblio.module, line 2496
Bibliography Module for Drupal.

Code

function biblio_set_map($type, $format, $map) {
  $map[$type] = serialize($map);
  $map['format'] = $format;
  drupal_write_record('biblio_type_maps', $map, 'format');
}