You are here

function hook_flag_options_alter in Flag 7.2

Same name and namespace in other branches
  1. 8.4 flag.api.php \hook_flag_options_alter()
  2. 6.2 flag.api.php \hook_flag_options_alter()
  3. 7.3 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

$options: The array of default options for the flag type, with the options for the flag's link type merged in.

$flag: The flag object.

See also

flag_flag::options()

1 invocation of hook_flag_options_alter()
flag_flag::options in ./flag.inc
Declares the options this flag supports, and their default values.

File

./flag.api.php, line 80
Hooks provided by the Flag module.

Code

function hook_flag_options_alter(&$options, $flag) {
}