/[drupal]/contributions/modules/voting_actions/voting_actions.inc
ViewVC logotype

Diff of /contributions/modules/voting_actions/voting_actions.inc

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

revision 1.7.2.4, Fri Apr 20 16:25:34 2007 UTC revision 1.7.2.5, Fri Apr 20 19:46:32 2007 UTC
# Line 227  function voting_actions_vote_result_form Line 227  function voting_actions_vote_result_form
227    
228  // Returns true if a specific property of the content object matches the criteria.  // Returns true if a specific property of the content object matches the criteria.
229  function voting_actions_content_property_handler($context, $condition) {  function voting_actions_content_property_handler($context, $condition) {
230    if (!empty($condition['data']['property']) && !empty($context['contet']->$condition['data']['property'])) {    if (($prop = $condition['data']['property']) && ($content = $context['content'])) {
231      return _voting_actions_compare($context['content']->$condition['data']['property'], $condition['data']['operator'], $condition['data']['value']);      return _voting_actions_compare($content->$prop, $condition['data']['operator'], $condition['data']['value']);
232    }    }
233    return FALSE;    return FALSE;
234  }  }

Legend:
Removed from v.1.7.2.4  
changed lines
  Added in v.1.7.2.5

  ViewVC Help
Powered by ViewVC 1.1.2