poll_field_extra_fields

Versions
7
poll_field_extra_fields($bundle)

Implements hook_field_extra_fields().

Code

modules/poll/poll.module, line 195

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.