? .svn
? ajax-decisions-links.patch.1
? decisions_theme-a.patch
? diff.diff
? diff.txt
? latest.diff
? selection.js.txt
? selection.module
? modes/.svn
? modes/selection.css.txt
? modes/selection.js.txt
? modes/ucd
? po/.svn
? tests/.svn
? translations/.svn
Index: decisions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/decisions.module,v
retrieving revision 1.232
diff -u -p -r1.232 decisions.module
--- decisions.module	22 Feb 2010 20:44:41 -0000	1.232
+++ decisions.module	23 Feb 2010 04:15:16 -0000
@@ -527,12 +527,7 @@ function decisions_electoral_list_form_s
 function decisions_view_results(&$node, $teaser, $page) {
   $mode = _decisions_get_mode($node);
   $function = "{$mode}_decisions_view_results";
-  if (function_exists($function)) {
-    return call_user_func($function, $node, $teaser, $page);
-  }
-  else {
-    _decisions_panic_on_mode($mode, __FUNCTION__);
-  }
+  return theme($function, $node, $teaser, $page);
 }
 
 /**
Index: modes/ranking.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/modes/ranking.module,v
retrieving revision 1.26
diff -u -p -r1.26 ranking.module
--- modes/ranking.module	11 Feb 2010 16:24:11 -0000	1.26
+++ modes/ranking.module	23 Feb 2010 04:15:17 -0000
@@ -39,6 +39,16 @@ function ranking_form(&$node) {
   return decisions_form($node);
 }
 
+/*
+ * Implementation of hook_theme().
+ */
+function ranking_theme() {
+  return array(
+    'ranking_decisions_view_results' => array(
+      'arguments' => array('node' => NULL, 'teaser' => FALSE, 'page' => FALSE, 'this_vote' => array()),
+    ),
+  );
+}
 function ranking_node_info() {
   $info = array();
   $info['decisions_ranking'] = array(
@@ -140,9 +150,12 @@ function decisions_ranking_voting_form($
 }
 
 /**
- * implementation of the decisions_view_results() hook for the runoff
+ * implementation of the theme_decisions_view_results() hook for the runoff
  * module
  */
+function theme_ranking_decisions_view_results($node, $teaser, $page) {
+  return ranking_decisions_view_results($node, $teaser, $page);
+}
 function ranking_decisions_view_results($node, $teaser, $page) {
   $results = _ranking_decisions_calculate_results($node);
 
Index: modes/selection.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/modes/selection.module,v
retrieving revision 1.23
diff -u -p -r1.23 selection.module
--- modes/selection.module	23 Feb 2010 01:07:29 -0000	1.23
+++ modes/selection.module	23 Feb 2010 04:15:17 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: selection.module,v 1.23 2010/02/23 01:07:29 ezrag Exp $
+// $Id: selection.module,v 1.22 2010/02/22 20:44:41 ezrag Exp $
 /**
  * @file
  *
@@ -19,6 +19,16 @@ function selection_menu() {
   return $items;
 }
 
+/*
+ * Implementation of hook_theme().
+ */
+function selection_theme() {
+  return array(
+    'selection_decisions_view_results' => array(
+      'arguments' => array('node' => NULL, 'teaser' => FALSE, 'page' => FALSE, 'this_vote' => array()),
+    ),
+  );
+}
 function selection_help($section) {
   $help = "";
   switch ($section) {
@@ -98,7 +108,7 @@ function selection_vote($nid = 0, $cid =
     else {
       //Sadly, we must reload the node.
       $node = node_load($nid);
-      print selection_decisions_view_results($node, FALSE, FALSE, $votes);
+      print theme('selection_decisions_view_results', $node, FALSE, FALSE, $votes);
       exit();
     }
   }
@@ -314,6 +324,7 @@ function selection_get_votes($nid, $uid)
   $results = votingapi_select_votes($criteria);
   return $results;
 }
+
 /**
  * Registers the vote as a key for this node using votingapi_set_vote().
  */
@@ -396,3 +407,7 @@ function decisions_selection_voting_form
     }
   }
 }
+
+function theme_selection_decisions_view_results($node = NULL, $teaser = FALSE, $page = FALSE, $this_vote = array()) {
+  return selection_decisions_view_results($node, $teaser, $page, $this_vote);
+}
\ No newline at end of file
