function activity_creator_views_data in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.2 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.3 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.4 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.5 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.6 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.7 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 8.8 modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 10.3.x modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 10.0.x modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 10.1.x modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
- 10.2.x modules/custom/activity_creator/activity_creator.module \activity_creator_views_data()
Implements hook_views_data().
File
- modules/
custom/ activity_creator/ activity_creator.module, line 131 - Activity Creator module file.
Code
function activity_creator_views_data() {
$data['activity']['activity_visibility_access_filter'] = [
'title' => t('Activity visibility access'),
'filter' => [
'title' => t('Activity visibility access'),
'help' => t('Enable activity access control.'),
'field' => 'field_visibility',
'id' => 'activity_visibility_access',
],
];
$data['activity']['activity_post_visibility_access_filter'] = [
'title' => t('Activity post visibility access'),
'filter' => [
'title' => t('Activity post visibility access'),
'help' => t('Enable activity access control for related post entities.'),
'field' => 'field_visibility',
'id' => 'activity_post_visibility_access',
],
];
$data['activity']['activity_profile_argument'] = [
'title' => t('Activity profile argument'),
'argument' => [
'title' => t('Activity profile argument'),
'help' => t('Activity profile context argument.'),
'id' => 'activity_profile_argument',
],
];
$data['activity']['activity_group_argument'] = [
'title' => t('Activity group argument'),
'argument' => [
'title' => t('Activity group argument'),
'help' => t('Activity group context argument.'),
'id' => 'activity_group_argument',
],
];
return $data;
}