function biblio_citeproc_example_citation in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_example_citation()
- 7 modules/CiteProc/biblio_citeproc.admin.inc \biblio_citeproc_example_citation()
1 call to biblio_citeproc_example_citation()
- theme_biblio_citeproc_style_manager_form in modules/
CiteProc/ biblio_citeproc.admin.inc
File
- modules/
CiteProc/ biblio_citeproc.admin.inc, line 347
Code
function biblio_citeproc_example_citation() {
global $language;
$contributors = array(
0 => array(
'lastname' => 'Oneauth',
'firstname' => 'Joe',
'initials' => 'A',
'auth_category' => 1,
'cid' => -1,
),
1 => array(
'lastname' => 'Twoauth',
'firstname' => 'John',
'initials' => 'B',
'auth_category' => 1,
'cid' => -2,
),
);
$node = new stdClass();
$node->nid = -1;
$node->title = 'This is a fantastic title.';
$node->biblio_contributors = $contributors;
$node->biblio_type = 102;
$node->biblio_year = 2010;
$node->biblio_volume = 1;
$node->biblio_issue = 2;
$node->biblio_secondary_title = 'Journal of Fantastic Articles';
$node->biblio_pages = ' 424-31';
$node->biblio_coins = '';
return theme_biblio_citeproc_style(array(
'node' => $node,
));
}