You are here

function biblio_get_style in Bibliography Module 7.2

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

Helper function to get either the user or system style

@global object $user

Return value

type

8 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_page_view in ./biblio.module
Displays a biblio; Hands data off to the Field API
biblio_plugin_row_citation::option_definition in views/biblio_plugin_row_citation.inc
Information about options for all kinds of purposes will be held here.

... See full list

File

./biblio.module, line 2329

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', 'cse.csl') : variable_get('biblio_style', 'cse');
}