I'm pretty new to theming so feel free to ask the stupid questions :)

I'm trying to theme theme_date_display_combination to only display the repeat rule if the date is a repeating date but to display the date if it is not repeating. I've implemented the code in yui_grid_date_repeat_display (I'm modifying the yui_grid theme) and placed it in the template.php file in the theme directory. I cannot, however, get Drupal to call my themed function. If I add a yui_grid_date_repeat_display function in the same file then it IS getting called so something is working.

Is there something else I have to do to get my replacement theme_date_display_combination function to be called? I have to say that I can't find where this function gets called in the date module though I do see where it is registered as a theme hook. Any information appreciated.

Comments

nevets’s picture

Shouldn't your function be yui_grid_date_repeat_display_combination? It should be the same as the original theme function (theme_date_display_combination) replacing 'theme' with your themes name (yui_grid)

yellek’s picture

Status: Active » Closed (fixed)

And the answer - the theme hook is actually date_formatter_default. The fact that a function exists called theme_date_display_combination is misleading as the theme hook is called something else.