function hook_social_user_account_header_account_links_alter in Open Social 8.9
Same name and namespace in other branches
- 8.4 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 8.5 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 8.6 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 8.7 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 8.8 modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 10.3.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 10.0.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 10.1.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
- 10.2.x modules/social_features/social_user/social_user.api.php \hook_social_user_account_header_account_links_alter()
Allows a module to alter the user menu item links.
Parameters
array $links: The results of all hook_social_user_account_header_account_links functions.
array $context: The context that was provided to the block rendering these links.
See also
\hook_social_user_account_header_account_links()
1 function implements hook_social_user_account_header_account_links_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- social_user_social_user_account_header_account_links_alter in modules/
social_features/ social_user/ social_user.module - Implements hook_social_user_account_header_account_links_alter().
1 invocation of hook_social_user_account_header_account_links_alter()
- AccountHeaderBlock::build in modules/
social_features/ social_user/ src/ Plugin/ Block/ AccountHeaderBlock.php - Builds and returns the renderable array for this block plugin.
File
- modules/
social_features/ social_user/ social_user.api.php, line 105 - Hooks provided by the Social_user module.
Code
function hook_social_user_account_header_account_links_alter(array &$links, array $context) {
// Remove the logout divider.
unset($links['divider_logout']);
}