You are here

function activity_viewer_views_data in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  2. 8 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  3. 8.2 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  4. 8.3 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  5. 8.4 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  6. 8.5 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  7. 8.6 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  8. 8.7 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  9. 8.8 modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  10. 10.3.x modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  11. 10.1.x modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()
  12. 10.2.x modules/custom/activity_viewer/activity_viewer.module \activity_viewer_views_data()

Implements hook_views_data().

File

modules/custom/activity_viewer/activity_viewer.module, line 11
Module file for activity_viewer.

Code

function activity_viewer_views_data() {
  $data['activity']['activity_filter_personalised_homepage_filter'] = [
    'title' => t('Filter on activities for the personalised homepage.'),
    'filter' => [
      'title' => t('Filter activities for personalised homepage'),
      'help' => t('Filter on activities for personalised homepage.'),
      'field' => 'field_visibility',
      'id' => 'activity_filter_personalised_homepage',
    ],
  ];
  $data['activity']['activity_explore_visibility_access_filter'] = [
    'title' => t('Filter on activities for the Explore page.'),
    'filter' => [
      'title' => t('Filter activities for Explore page'),
      'help' => t('The explore page shows content not directly related to you,
      so placed in a groups you are not a member of.'),
      'field' => 'field_visibility',
      'id' => 'activity_explore_visibility_access',
    ],
  ];
  return $data;
}