Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i wanna change mini calendar month theme with my custom theme
It works only /sites/all/themes/mytheme/templates/view/calendar-mini.tpl.php
but i wanna change theme by views information because i have a lots views year calendar
like/sites/all/themes/mytheme/templates/view/calendar-mini--view_name.tpl.php it doesnt work it include /sites/all/modules/contrib/calendar/theme/calendar-mini.tpl.php
Comments
Comment #1
lazzyvn CreditAttribution: lazzyvn commentedI think in function
function template_preprocess_calendar_year(&$vars)
it call theme calendar_mini
$months[$month] = theme('calendar_mini', $variables);
that's why i can't make custom theme for mini calendar
I don't know how to make patch
i hope next version will add this code to theme.inc
i try replace 'calendar_mini' by $theme_hook_suggestion
You can make hook YOURTHEME_preprocess_calendar_year(&$vars). but it takes more time for me 0.2s vs 0.9s
Comment #2
Neslee Canil Pinto