You are here

function template_preprocess_calendar_mini in Calendar 7.2

Same name in this branch
  1. 7.2 theme/theme.inc \template_preprocess_calendar_mini()
  2. 7.2 calendar_multiday/theme/theme.inc \template_preprocess_calendar_mini()
Same name and namespace in other branches
  1. 8 calendar.theme.inc \template_preprocess_calendar_mini()
  2. 6.2 theme/theme.inc \template_preprocess_calendar_mini()
  3. 6.2 calendar_multiday/theme/theme.inc \template_preprocess_calendar_mini()
  4. 7.3 theme/theme.inc \template_preprocess_calendar_mini()
  5. 7 theme/theme.inc \template_preprocess_calendar_mini()
  6. 7 calendar_multiday/theme/theme.inc \template_preprocess_calendar_mini()

Display a mini month view.

File

calendar_multiday/theme/theme.inc, line 207
Theme functions for the Calendar module.

Code

function template_preprocess_calendar_mini(&$vars) {

  // Add in all the $vars added by the main calendar preprocessor.
  template_preprocess_calendar_month($vars);
  $view = $vars['view'];
  $view->date_info->show_title = !empty($view->date_info->show_title) ? $view->date_info->show_title : FALSE;
  $vars['show_title'] = $view->date_info->show_title;
  $vars['view'] = $view;
}