function hook_flag_options_alter in Flag 7.3
Same name and namespace in other branches
- 8.4 flag.api.php \hook_flag_options_alter()
- 6.2 flag.api.php \hook_flag_options_alter()
- 7.2 flag.api.php \hook_flag_options_alter()
Alter a flag's default options.
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.
Parameters
array $options: The array of default options for the flag type, with the options for the flag's link type merged in.
flag_flag $flag: The flag object.
See also
1 invocation of hook_flag_options_alter()
- flag_flag::options in includes/
flag/ flag_flag.inc - Declares the options this flag supports, and their default values.
File
- ./
flag.api.php, line 129 - Hooks provided by the Flag module.
Code
function hook_flag_options_alter(&$options, $flag) {
}