summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-06 13:27:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-06 13:27:23 +0000
commit5bbbf10ba84042b8576d67576d98922c0063c6d6 (patch)
treea2eef7bccd7d5289426b3c8edc23f52bc9f6e2ed /modules/poll
parent21c5b71795aec277a8b01ecea74e809a24be0229 (diff)
downloadbrdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.gz
brdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.bz2
- Patch #130987 by merlinofchaos: added theme registry for easier themability.
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.module17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 0033f7734..f1e457c4c 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -21,6 +21,23 @@ function poll_help($section) {
}
/**
+ * Implementation of hook_theme()
+ */
+function poll_theme() {
+ return array(
+ 'poll_view_voting' => array(
+ 'arguments' => array('form' => NULL),
+ ),
+ 'poll_results' => array(
+ 'arguments' => array('title' => NULL, 'results' => NULL, 'votes' => NULL, 'links' => NULL, 'block' => NULL, 'nid' => NULL, 'vote' => NULL),
+ ),
+ 'poll_bar' => array(
+ 'arguments' => array('title' => NULL, 'percentage' => NULL, 'votes' => NULL, 'block' => NULL),
+ ),
+ );
+}
+
+/**
* Implementation of hook_access().
*/
function poll_access($op, $node) {