You are here

function social_event_managers_views_data_alter in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  2. 8.5 modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  3. 8.6 modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  4. 8.8 modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  5. 10.3.x modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  6. 10.0.x modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  7. 10.1.x modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()
  8. 10.2.x modules/social_features/social_event/modules/social_event_managers/social_event_managers.module \social_event_managers_views_data_alter()

Implements hook_views_data_alter().

File

modules/social_features/social_event/modules/social_event_managers/social_event_managers.module, line 48
Contains social_event_managers.module.

Code

function social_event_managers_views_data_alter(array &$data) {

  // Create our own views VBO field for enrollments.
  $data['views']['social_views_bulk_operations_bulk_form_enrollments'] = [
    'title' => t('Social Views bulk operations for Enrollments'),
    'help' => t("Process enrollments returned by the view with Views Bulk Operations' actions."),
    'field' => [
      'id' => 'social_views_bulk_operations_bulk_form_enrollments',
    ],
  ];
}