function social_path_manager_social_path_manager_group_tabs_alter in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 8.5 modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 8.6 modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 8.7 modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 8.8 modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 10.3.x modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 10.0.x modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
- 10.2.x modules/custom/social_path_manager/social_path_manager.module \social_path_manager_social_path_manager_group_tabs_alter()
Implements hook_social_path_manager_group_tabs_alter().
File
- modules/
custom/ social_path_manager/ social_path_manager.module, line 174 - The Social Path Manager module.
Code
function social_path_manager_social_path_manager_group_tabs_alter(array &$tabs) {
foreach ($tabs as $key => $route) {
// Only allow tabs that are part of the group.
if (strpos($key, 'layout_builder') !== FALSE) {
unset($tabs[$key]);
}
}
}