function simplenews_entity_extra_field_info in Simplenews 8.2
Same name and namespace in other branches
- 8 simplenews.module \simplenews_entity_extra_field_info()
- 3.x simplenews.module \simplenews_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- ./
simplenews.module, line 856 - Simplenews node handling, sent email, newsletter block and general hooks.
Code
function simplenews_entity_extra_field_info() {
$return['user']['user'] = [
'display' => [
'simplenews' => [
'label' => 'Newsletters',
'description' => t('Newsletter subscriptions of the user'),
'weight' => 30,
'visible' => FALSE,
],
],
'form' => [
'simplenews' => [
'label' => 'Newsletters',
'description' => t('Newsletter subscriptions of the user'),
'weight' => 5,
],
],
];
return $return;
}