summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.module22
1 files changed, 22 insertions, 0 deletions
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
@@ -199,6 +199,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().
*/
function poll_form($node, $form_state) {