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.
Even there is a call in views_handler_field_date the theme function does not exists.
I think it would be enough to just copy the function from an old version, f.e DRUPAL-5
Comment | File | Size | Author |
---|---|---|---|
#4 | 608926-theme-views-nodate.patch | 862 bytes | longwave |
Comments
Comment #1
dawehnerThats minor
Comment #2
dawehnerThis is a minor task, sorry but noone will ever need this.
Comment #3
dawehnerThis just is a problem if you are on a port of views to perhaps drupal8 :) Afaik this will not happen on a normal page run.
Comment #4
longwaveI just noticed the call to theme('views_nodate') in the date handler and wondered why the theme function doesn't exist. I have a case where it would be invoked: if the date field is in a left joined table, the value could be null if there is no matching row.
Having said that, the empty text setting is obviously more flexible, so perhaps this should be removed? If you actually implement theme_views_nodate() then the empty text setting is always overridden. The attached patch removes the theme() call and applies to both 6.x-2.x and 6.x-3.x.
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedApplied to 6.x-2.x and 6.x-3.x
Comment #6
dawehnerPorted to 7.x-3.x