/[drupal]/contributions/modules/PeerReview/peerreview.module
ViewVC logotype

Contents of /contributions/modules/PeerReview/peerreview.module

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Sep 5 22:29:28 2009 UTC (2 months, 3 weeks ago) by ingo86
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -36 lines
File MIME type: text/x-php
Added the main peerreview module that enable specific setups for the platform. By now it adds a css file to the node view to show correctly the varius comments and nodes.
1 <?php
2 // $Id $
3
4 /**
5 * Add a stylesheet to question node type.
6 */
7
8 function peerreview_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
9 switch ($op) {
10 case 'view':
11 if ($node->type == 'question') {
12 drupal_add_css(drupal_get_path('module', 'peerreview') .'/peerreview.css');
13 }
14 break;
15 }
16 }

  ViewVC Help
Powered by ViewVC 1.1.2