You are here

function photos_views_data_alter in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 photos.module \photos_views_data_alter()
  2. 7.3 inc/views/photos.views.inc \photos_views_data_alter()

Implements hook_views_data_alter().

File

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

Code

function photos_views_data_alter(array &$data) {
  $data['photos_image_field_data']['uid']['argument'] = [
    'id' => 'user_uid',
    'name table' => 'users_field_data',
    'name field' => 'name',
    'empty field name' => \Drupal::config('user.settings')
      ->get('anonymous'),
  ];
}