function theme_biblio_style in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio_theme.inc \theme_biblio_style()
- 7 includes/biblio_theme.inc \theme_biblio_style()
- 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.:
Return value
A string containing the styled (HTML) node
4 theme calls to theme_biblio_style()
- biblio_view in ./
biblio.module - Implementation of hook_view().
- theme_biblio_entry in ./
biblio_theme.inc - theme_biblio_long in ./
biblio_theme.inc - DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
- _biblio_citekey_print in ./
biblio.module
File
- ./
biblio_theme.inc, line 681
Code
function theme_biblio_style($node, $base = 'biblio', $style_name = 'classic', $inline = false) {
module_load_include('inc', 'biblio', "biblio_style_{$style_name}");
$style_function = "biblio_style_{$style_name}";
$styled_node = $style_function($node, $base, $inline);
if (empty($node->biblio_coins)) {
biblio_coins_generate($node);
}
return $styled_node . filter_xss($node->biblio_coins, array(
'span',
));
}