function social_event_invite_preprocess_views_view_table in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_invite/social_event_invite.module \social_event_invite_preprocess_views_view_table()
- 10.3.x modules/social_features/social_event/modules/social_event_invite/social_event_invite.module \social_event_invite_preprocess_views_view_table()
- 10.0.x modules/social_features/social_event/modules/social_event_invite/social_event_invite.module \social_event_invite_preprocess_views_view_table()
- 10.2.x modules/social_features/social_event/modules/social_event_invite/social_event_invite.module \social_event_invite_preprocess_views_view_table()
Implements hook_preprocess_HOOK().
File
- modules/
social_features/ social_event/ modules/ social_event_invite/ social_event_invite.module, line 120 - The Social event invite enroll module.
Code
function social_event_invite_preprocess_views_view_table(&$variables) {
if ($variables['view']
->id() === 'event_manage_enrollment_invites' || $variables['view']
->id() === 'user_event_invites') {
// Add this to ensure our overviews get rendered nicely
// even if VBO is not enabled (yet) we use the same look and feel.
$variables['attributes']['class'][] = 'vbo-table';
}
}