/[drupal]/contributions/modules/ejournal/ejournalcitation.module
ViewVC logotype

Diff of /contributions/modules/ejournal/ejournalcitation.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.5.4.1, Sun Nov 23 13:59:50 2008 UTC revision 1.1.2.5.4.2, Thu Jul 9 09:51:06 2009 UTC
# Line 5  function ejournalcitation_ejournal_exten Line 5  function ejournalcitation_ejournal_exten
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,
# Line 109  function ejournalcitation_generate_citat Line 109  function ejournalcitation_generate_citat
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          }          }

Legend:
Removed from v.1.1.2.5.4.1  
changed lines
  Added in v.1.1.2.5.4.2

  ViewVC Help
Powered by ViewVC 1.1.2