diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-23 19:10:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-23 19:10:23 +0000 |
commit | 5ff0c0d3c7757038af8ab95f5386a9fec1aa1b10 (patch) | |
tree | 96c318263445fe4df0b3d23be923f6caaefdface /modules/poll | |
parent | 5d4fa6f72511d4a3948d5527f9202d6cd2aa137f (diff) | |
download | brdo-5ff0c0d3c7757038af8ab95f5386a9fec1aa1b10.tar.gz brdo-5ff0c0d3c7757038af8ab95f5386a9fec1aa1b10.tar.bz2 |
- Patch #553298 by yched, te-brian, chx, sun: redesign the 'Manage Display' screen.
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.module | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 8a6060151..7a8c33395 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -208,16 +208,30 @@ function poll_node_info() { */ function poll_field_extra_fields() { $extra['node']['poll'] = array( - 'choice_wrapper' => array( - 'label' => t('Poll choices'), - 'description' => t('Poll module choices.'), - 'weight' => -4, - ), - 'settings' => array( - 'label' => t('Poll settings'), - 'description' => t('Poll module settings.'), - 'weight' => -3, + 'form' => array( + 'choice_wrapper' => array( + 'label' => t('Poll choices'), + 'description' => t('Poll choices'), + 'weight' => -4, + ), + 'settings' => array( + 'label' => t('Poll settings'), + 'description' => t('Poll module settings'), + 'weight' => -3, + ), ), + 'display' => array( + 'poll_view_voting' => array( + 'label' => t('Poll vote'), + 'description' => t('Poll vote'), + 'weight' => 0, + ), + 'poll_view_results' => array( + 'label' => t('Poll results'), + 'description' => t('Poll results'), + 'weight' => 0, + ), + ) ); return $extra; @@ -624,7 +638,7 @@ function poll_block_latest_poll_view($node) { /** * Implements hook_view(). */ -function poll_view($node, $view_mode = 'full') { +function poll_view($node, $view_mode) { global $user; $output = ''; |