You are here

activity_viewer.module in Open Social 8.2

Module file for activity_viewer.

File

modules/custom/activity_viewer/activity_viewer.module
View source
<?php

/**
 * @file
 * Module file for activity_viewer.
 */

/**
 * Implements hook_views_data().
 */
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',
    ],
  ];
  return $data;
}

Functions

Namesort descending Description
activity_viewer_views_data Implements hook_views_data().