Skip to content

Commit

Permalink
fixup! Ensure profile always exists regardless of hook order
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdutch committed Aug 22, 2023
1 parent b39fc4d commit 80ecaf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/social_features/social_profile/social_profile.module
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ function social_profile_module_implements_alter(&$implementations, $hook) : void
$profile = $implementations['profile'];
$social_profile = $implementations['social_profile'];
unset($implementations['profile'], $implementations['social_profile']);
array_unshift($implementations, $profile, $social_profile);
$implementations = [
'profile' => $profile,
'social_profile' => $social_profile,
] + $implementations;
}
}

Expand Down

0 comments on commit 80ecaf4

Please sign in to comment.