| 1 |
<?php |
<?php |
| 2 |
// $Id: nmoderation.module,v 1.25 2006/04/28 18:38:55 eaton Exp $ |
// $Id: nmoderation.module,v 1.26 2006/05/02 04:42:46 eaton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 512 |
|
|
| 513 |
if ($user->uid == $vote->uid || user_access('administer node moderation votes')) { |
if ($user->uid == $vote->uid || user_access('administer node moderation votes')) { |
| 514 |
votingapi_delete_vote($vote); |
votingapi_delete_vote($vote); |
| 515 |
votingapi_recalculate_results($vote->content_id, $vote->content_id); |
votingapi_recalculate_results($vote->content_type, $vote->content_id); |
| 516 |
|
|
| 517 |
nmoderation_set_promote($vote->content_id, $vote->content_type); |
nmoderation_set_promote($vote->content_id, $vote->content_type); |
| 518 |
|
|