/[drupal]/contributions/modules/karma/karma.module
ViewVC logotype

Diff of /contributions/modules/karma/karma.module

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

revision 1.43, Sat Oct 13 00:00:46 2007 UTC revision 1.44, Thu Oct 18 23:58:56 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: karma.module,v 1.42 2007/07/10 06:48:38 mcarbone Exp $  // $Id: karma.module,v 1.43 2007/10/13 00:00:46 mcarbone Exp $
3    
4  include './'. drupal_get_path('module', 'karma') .'/karma.theme';  include './'. drupal_get_path('module', 'karma') .'/karma.theme';
5    
# Line 516  function karma_user($op, &$edit, &$user, Line 516  function karma_user($op, &$edit, &$user,
516    
517  function karma_forms($args) {  function karma_forms($args) {
518    list($form_id, $type, $object, $id) = $args;    list($form_id, $type, $object, $id) = $args;
519    $forms['karma_rating_form_'. $type .'_'. $id] = array('callback' => 'karma_rating_form', $type, $object);    if ($type == 'node' || $type == 'comment') {
520        $forms['karma_rating_form_'. $type .'_'. $id] = array('callback' => 'karma_rating_form', $type, $object);
521      }
522    return $forms;    return $forms;
523  }  }
524    

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.2