function poll_field_extra_fields

Implements hook_field_extra_fields().

File

modules/poll/poll.module, line 201

Code

function poll_field_extra_fields() {
    $extra['node']['poll'] = array(
        '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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.