You are here

function _biblio_tagged_type_map in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/endnote/biblio_tagged.module \_biblio_tagged_type_map()
  2. 7.2 modules/endnote/biblio_tagged.module \_biblio_tagged_type_map()
2 calls to _biblio_tagged_type_map()
_biblio_tagged_export in modules/endnote/biblio_tagged.module
_biblio_tagged_import in modules/endnote/biblio_tagged.module
Export data in tagged format.

File

modules/endnote/biblio_tagged.module, line 442

Code

function _biblio_tagged_type_map($type, $reverse = FALSE) {
  static $map = array();
  if (empty($map)) {
    $map = biblio_get_map('type_map', 'tagged');
  }
  if ($reverse) {

    // Return the biblio type or 129 (Misc) if type not found.
    return ($tag = array_search($type, $map)) ? $tag : 'Generic';
  }

  // Return the biblio type or 129 (Misc) if type not found.
  return isset($map[$type]) ? $map[$type] : 129;
}