You are here

function biblio_get_style in Bibliography Module 7

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

Helper function to get either the user or system style.

7 calls to biblio_get_style()
biblio_entry in includes/biblio.pages.inc
biblio_format_authors in includes/biblio_theme.inc
biblio_handler_citation::option_definition in views/biblio_handler_citation.inc
Information about options for all kinds of purposes will be held here.
biblio_rtf_biblio_export in modules/rtf/biblio_rtf.module
biblio_view in ./biblio.module
Implements hook_view().

... See full list

File

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

Code

function biblio_get_style() {
  global $user;
  if (isset($user->data['biblio_user_style']) && $user->data['biblio_user_style'] != "system") {
    return $user->data['biblio_user_style'];
  }
  return module_exists('biblio_citeproc') ? variable_get('biblio_citeproc_style', 'ieee.csl') : variable_get('biblio_style', 'cse');
}