You are here

function bibcite_endnote_update_8002 in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_endnote/bibcite_endnote.install \bibcite_endnote_update_8002()

Add new issue and edition fields to the EndNote X3 XML format mapping.

File

modules/bibcite_endnote/bibcite_endnote.install, line 52
Module installation hooks implementation.

Code

function bibcite_endnote_update_8002() {
  $config = \Drupal::configFactory()
    ->getEditable('bibcite_entity.mapping.endnote8');
  $fields = $config
    ->get('fields');
  $fields['issue'] = 'bibcite_issue';
  $fields['edition'] = 'bibcite_edition';
  $config
    ->set('fields', $fields);
  $config
    ->save(TRUE);
}