You are here

function social_profile_menu_local_tasks_alter in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()
  2. 8.7 modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()
  3. 8.8 modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()
  4. 10.3.x modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()
  5. 10.0.x modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()
  6. 10.1.x modules/social_features/social_profile/social_profile.module \social_profile_menu_local_tasks_alter()

Implements hook_menu_local_tasks_alter().

File

modules/social_features/social_profile/social_profile.module, line 245
The Social profile module.

Code

function social_profile_menu_local_tasks_alter(&$data, $route_name) {
  if (isset($data['tabs'][0]['profile.user_page:profile'])) {
    unset($data['tabs'][0]['profile.user_page:profile']);
  }
}