From e998857eb8a5ef4d2ebe381a57c19b1b355fe4ef Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 19 Aug 2009 13:31:14 +0000 Subject: #516138 by yched, KarenS, quicksketch, bangpound, et al.: CC-FREAKING-K IN CORE! OH YEAH! :D --- modules/poll/poll.module | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'modules/poll') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index b8493a397..bcd5d62b3 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -198,6 +198,28 @@ function poll_node_info() { ); } +/** + * Implement hook_field_extra_fields(). + */ +function poll_field_extra_fields($bundle) { + $extra = array(); + + if ($bundle == 'poll') { + $extra['choice_wrapper'] = array( + 'label' => t('Poll choices'), + 'description' => t('Poll module choices.'), + 'weight' => -4, + ); + $extra['settings'] = array( + 'label' => t('Poll settings'), + 'description' => t('Poll module settings.'), + 'weight' => -3, + ); + } + + return $extra; +} + /** * Implement hook_form(). */ -- cgit v1.2.3