Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
in 7x3.4 or 7x3.5 hook_flag_default_flags_alter() was implemented.
Can someone give me a guideline if I should consider using hook_flag_default_flags_alter() or hook_flag_options_alter() if I'm thinking of performance.
The info says to use the second one if I want to change a flags default options.
I do not have a deep understanding of this module. Can someone clarify the difference between these two hooks please.
Thanks
Comments
Comment #1
joachim CreditAttribution: joachim commentedhook_flag_options_alter():
hook_flag_default_flags_alter():
> The info says to use the second one if I want to change a flags default options.
Where does it say this?