You are here

function biblio_view_inline in Bibliography Module 6.2

Same name and namespace in other branches
  1. 5 biblio.module \biblio_view_inline()
  2. 6 biblio.pages.inc \biblio_view_inline()

Creates an HTML string for a node view in either tabular or long format.

Parameters

$node:

Return value

string An HTML formatted string for inline style of biblio content view.

1 string reference to 'biblio_view_inline'
biblio_menu in ./biblio.module
Implements hook_menu().

File

includes/biblio.pages.inc, line 1204
Functions in the biblio module related to filtering and page generation.

Code

function biblio_view_inline(&$node) {
  $style = biblio_get_style();
  $base = variable_get('biblio_base', 'biblio');
  $layout = variable_get('biblio_node_layout', 'tabular');
  $theme = $layout == 'tabular' ? 'biblio_tabular' : 'biblio_long';
  $output = '<div class="biblio-inline">';
  $output .= theme($theme, $node, $base, $style);
  $output .= '</div>';
  return $output;
}