diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php index 288fd66..e0dc1b9 100644 --- a/core/modules/field/field.api.php +++ b/core/modules/field/field.api.php @@ -33,6 +33,10 @@ use Drupal\field\FieldUpdateForbiddenException; * - label: The human readable name of the component. * - description: A short description of the component contents. * - weight: The default weight of the element. + * - edit: A piece of markup used as the field's "edit" operation in the + * administration interface. + * - delete: A piece of markup used as the field's "delete" operation in the + * administration interface. */ function hook_field_extra_fields() { $extra['node']['poll'] = array( @@ -41,6 +45,8 @@ function hook_field_extra_fields() { 'label' => t('Poll choices'), 'description' => t('Poll choices'), 'weight' => -4, + 'edit' => l(t('edit'), 'administer/config/system/poll/choices/edit'), + 'delete' => l(t('delete'), 'administer/config/system/poll/choices/delete'), ), 'settings' => array( 'label' => t('Poll settings'),