Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / field_extra_fields.twig
1 /**
2  * Implements hook_field_extra_fields().
3  */
4 function {{ machine_name }}_field_extra_fields() {
5   $extra['node']['poll'] = array(
6     'form' => array(
7       'choice_wrapper' => array(
8         'label' => t('Poll choices'),
9         'description' => t('Poll choices'),
10         'weight' => -4,
11       ),
12       'settings' => array(
13         'label' => t('Poll settings'),
14         'description' => t('Poll module settings'),
15         'weight' => -3,
16       ),
17     ),
18     'display' => array(
19       'poll_view_voting' => array(
20         'label' => t('Poll vote'),
21         'description' => t('Poll vote'),
22         'weight' => 0,
23       ),
24       'poll_view_results' => array(
25         'label' => t('Poll results'),
26         'description' => t('Poll results'),
27         'weight' => 0,
28       ),
29     )
30   );
31
32   return $extra;
33 }