| 1 |
<?php |
<?php |
| 2 |
// $Id: karma.module,v 1.41.2.3 2007/10/18 23:57:46 mcarbone Exp $ |
// $Id: karma.module,v 1.41.2.4 2007/10/19 00:11:18 mcarbone Exp $ |
| 3 |
|
|
| 4 |
include './'. drupal_get_path('module', 'karma') .'/karma.theme'; |
include './'. drupal_get_path('module', 'karma') .'/karma.theme'; |
| 5 |
|
|
| 214 |
} |
} |
| 215 |
|
|
| 216 |
function karma_comment(&$comment, $op) { |
function karma_comment(&$comment, $op) { |
| 217 |
if ($op == 'view' && arg(1) != 'reply' && user_access('view comment ratings')) { |
if ($op == 'view' && arg(1) != 'reply' && arg(1) != 'edit' && user_access('view comment ratings')) { |
| 218 |
$rating_form = drupal_get_form('karma_rating_form_comment_'. $comment->cid, 'comment', $comment, $comment->cid); |
$rating_form = drupal_get_form('karma_rating_form_comment_'. $comment->cid, 'comment', $comment, $comment->cid); |
| 219 |
drupal_add_css(drupal_get_path('module', 'karma') .'/karma.css'); |
drupal_add_css(drupal_get_path('module', 'karma') .'/karma.css'); |
| 220 |
drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js'); |
drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js'); |