You are here

function theme_biblio_style in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio_theme.inc \theme_biblio_style()
  2. 7 includes/biblio_theme.inc \theme_biblio_style()
  3. 7.2 includes/biblio.theme.inc \theme_biblio_style()

Applies a "style" function to a single node.

Parameters

$node A node:

$base The base url for biblio (defaults to /biblio):

$style_name The name of the style to apply:

$inline "inline" mode returns the raw HTML rather than letting drupal render the whole page.:

6 theme calls to theme_biblio_style()
biblio_handler_citation::render in views/biblio_handler_citation.inc
biblio_rtf_biblio_export in modules/rtf/biblio_rtf.module
biblio_view in ./biblio.module
Implements hook_view().
theme_biblio_entry in includes/biblio_theme.inc
theme_biblio_long in includes/biblio_theme.inc
DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function

... See full list

File

includes/biblio_theme.inc, line 853

Code

function theme_biblio_style($node, $base = 'biblio', $style_name = 'classic', $inline = false) {
  module_load_include('inc', 'biblio', "styles/biblio_style_{$style_name}");
  $style_function = "biblio_style_{$style_name}";
  $styled_node = $style_function($node, $base, $inline);
  return $styled_node . filter_xss($node->biblio_coins, array(
    'span',
  ));
}