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

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

hook_flag_options_alter():

* Modules that wish to extend flags and provide additional options must declare
* them here so that their additions to the flag admin form are saved into the
* flag object.

hook_flag_default_flags_alter():

* Alter the definition of default flags.

> The info says to use the second one if I want to change a flags default options.

Where does it say this?