function farm_theme_preprocess_calendar_item in farmOS 7
Implements hook_preprocess_calendar_item().
File
- themes/
farm_theme/ template.php, line 634 - Farm theme template.php.
Code
function farm_theme_preprocess_calendar_item(&$vars) {
// If the item has a Log entity associated with it, add the log type as a
// CSS class.
if (!empty($vars['item']->entity->type)) {
$class = drupal_html_class($vars['item']->entity->type);
if (empty($vars['item']->class)) {
$vars['item']->class = $class;
}
else {
$vars['item']->class .= ' ' . $class;
}
}
}