You are here

function photos_entity_extra_field_info in Album Photos 8.4

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

Implements hook_entity_extra_field_info().

File

./photos.module, line 923
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,
  ];
  return $fields;
}