function social_event_social_core_block_visibility_path in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/social_event.module \social_event_social_core_block_visibility_path()
- 10.3.x modules/social_features/social_event/social_event.module \social_event_social_core_block_visibility_path()
- 10.0.x modules/social_features/social_event/social_event.module \social_event_social_core_block_visibility_path()
- 10.1.x modules/social_features/social_event/social_event.module \social_event_social_core_block_visibility_path()
- 10.2.x modules/social_features/social_event/social_event.module \social_event_social_core_block_visibility_path()
Alter the visibility of blocks coming from the event module.
File
- modules/
social_features/ social_event/ social_event.module, line 33 - The Social event module.
Code
function social_event_social_core_block_visibility_path() {
$blocks = [
'social_page_title_block' => [
'*/all-enrollment-requests/confirm-decline/*',
'*/invite/email',
'*/invite/confirm',
'*/event-invites',
'*/all-enrollments/add-enrollees',
],
'views_block:managers-event_managers' => [
'*/all-enrollment-requests/confirm-decline/*',
'*/invite/email',
'*/invite/confirm',
],
'views_block:event_enrollments-event_enrollments' => [
'*/all-enrollment-requests/confirm-decline/*',
'*/invite/email',
'*/invite/confirm',
],
];
return $blocks;
}