function farm_theme_farm_flags_classes_alter in farmOS 7
Implements hook_farm_flags_classes_alter().
File
- themes/
farm_theme/ template.php, line 282 - Farm theme template.php.
Code
function farm_theme_farm_flags_classes_alter($flag, &$classes) {
// Render all flags as extra small buttons using Bootstrap's classes.
$classes[] = 'btn';
$classes[] = 'btn-xs';
// Add a button style class based on the flag used.
switch ($flag) {
case 'priority':
$classes[] = 'btn-primary';
break;
case 'monitor':
$classes[] = 'btn-danger';
break;
case 'review':
$classes[] = 'btn-warning';
break;
default:
$classes[] = 'btn-default';
}
}