function hook_flag_default_flags_alter in Flag 7.3
Alter the definition of default flags.
Parameters
array &$flags: An array keyed by flag machine name containing flag definitions.
1 invocation of hook_flag_default_flags_alter()
- flag_get_default_flags in ./
flag.module - Retrieve a list of flags defined by modules.
File
- ./
flag.api.php, line 99 - Hooks provided by the Flag module.
Code
function hook_flag_default_flags_alter(&$flags) {
if (!empty($flags['bookmark'])) {
$flags['bookmark']['title'] = 'Bananana Bookmark';
}
}