You are here

function hook_farm_flags_classes_alter in farmOS 7

Allow modules to alter the classes that are added to flags when they are displayed in farmOS.

Related topics

1 function implements hook_farm_flags_classes_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

farm_theme_farm_flags_classes_alter in themes/farm_theme/template.php
Implements hook_farm_flags_classes_alter().
1 invocation of hook_farm_flags_classes_alter()
farm_flags_wrap in modules/farm/farm_flags/farm_flags.module
Wrap a flag string in a span.

File

modules/farm/farm_flags/farm_flags.api.php, line 43
Hooks provided by farm_flags.

Code

function hook_farm_flags_classes_alter($flag, &$classes) {
  if ($flag == 'priority') {
    $classes[] = 'my-priority-class';
  }
}