You are here

function simplenews_entity_extra_field_info in Simplenews 8

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_entity_extra_field_info()
  2. 3.x simplenews.module \simplenews_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

./simplenews.module, line 1055
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_entity_extra_field_info() {
  $return['user']['user'] = array(
    'display' => array(
      'simplenews' => array(
        'label' => 'Newsletters',
        'description' => t('Newsletter subscriptions of the user'),
        'weight' => 30,
        'visible' => FALSE,
      ),
    ),
    'form' => array(
      'simplenews' => array(
        'label' => 'Newsletters',
        'description' => t('Newsletter subscriptions of the user'),
        'weight' => 5,
      ),
    ),
  );
  return $return;
}