You are here

function photos_entity_extra_field_info in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 photos.module \photos_entity_extra_field_info()
  2. 8.4 photos.module \photos_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

./photos.module, line 710
Implementation of photos.module.

Code

function photos_entity_extra_field_info() {

  // User albums.
  $fields['user']['user']['display']['photos_album_count'] = [
    'label' => t('User albums'),
    'description' => t('User album count view element.'),
    'weight' => 10,
  ];

  // User images.
  $fields['user']['user']['display']['photos_image_count'] = [
    'label' => t('User images'),
    'description' => t('User image count view element.'),
    'weight' => 15,
  ];

  // Photos node album cover display.
  $fields['node']['photos']['display']['photos_album_cover'] = [
    'label' => t('Album cover'),
    'description' => t('The photos album cover.'),
    'weight' => 1,
    'visible' => TRUE,
  ];

  // Photos node album photos list display.
  $fields['node']['photos']['display']['photos_album_photo_list'] = [
    'label' => t('Album photos'),
    'description' => t('The album photos list view.'),
    'weight' => 1,
    'visible' => TRUE,
  ];
  return $fields;
}