| 5 |
switch($hook) { |
switch($hook) { |
| 6 |
case 'nodeapi': |
case 'nodeapi': |
| 7 |
if($args['op'] == 'view') { |
if($args['op'] == 'view') { |
| 8 |
if ($citation = ejournalcitation_generate_citation($thing)) { |
if ($citation = theme('ejournalcitation', $thing)) { |
| 9 |
$thing->content["ejournal-citation"] = array ( |
$thing->content["ejournal-citation"] = array ( |
| 10 |
"#value" => $citation, |
"#value" => $citation, |
| 11 |
"#weight" => 10, |
"#weight" => 10, |
| 109 |
return $template; |
return $template; |
| 110 |
} |
} |
| 111 |
|
|
| 112 |
if (!function_exists('theme_ejournal_article_citation')) { |
if (!function_exists('theme_ejournalcitation')) { |
| 113 |
function theme_ejournalcitation(&$node) { |
function theme_ejournalcitation(&$node) { |
| 114 |
return '<div class="citation">' . ejournalcitation_generate_citation($node) . "</div>\n"; |
return '<div class="citation">' . ejournalcitation_generate_citation($node) . "</div>\n"; |
| 115 |
} |
} |