| 1 |
<?php |
<?php |
| 2 |
// $Id: vud_comment.module,v 1.1.2.14 2009/08/09 17:53:26 lut4rp Exp $ |
// $Id: vud_comment.module,v 1.1.2.15 2009/08/15 21:15:45 lut4rp Exp $ |
| 3 |
|
|
| 4 |
|
/** |
| 5 |
|
* @file |
| 6 |
|
* Adds a voting widget to comments. |
| 7 |
|
*/ |
| 8 |
|
|
| 9 |
/** |
/** |
| 10 |
* Implementation of hook_perm(). |
* Implementation of hook_perm(). |
| 102 |
*/ |
*/ |
| 103 |
function vud_comment_link($type, $object, $teaser = FALSE) { |
function vud_comment_link($type, $object, $teaser = FALSE) { |
| 104 |
$links = array(); |
$links = array(); |
| 105 |
switch($type) { |
switch ($type) { |
| 106 |
case 'comment': |
case 'comment': |
| 107 |
$comment = &$object; |
$comment = &$object; |
| 108 |
$votes_display_mode = variable_get('vud_comment_votes', 1); |
$votes_display_mode = variable_get('vud_comment_votes', 1); |