Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Filter
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 May 2011 at 12:57 UTC
Updated:
13 Nov 2018 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
julien commentedFound a way to do it. You can edit date_api_elements.inc line 219 and add :
$element['year']['#options'][''] = 'your string';Could be nice to have a variable_get instead of 'your string' to define it somewhere.
Hope that helps
Comment #2
julien commentedHere is a quick patch to fix this.
Comment #3
tree2009 commented@julien, how to do this in version 7.x-2.7
Comment #4
julien commentedLooking at this new version code, maybe you can try to use this theme function in template.php of your theme, see if it works. Haven't tested so i'm not too sure. Check if you can alter the element variable maybe.
Comment #5
jerrylow commentedSo I was looking into this myself for 7.x 2.x-dev and found this.
Look into module/date/date_api/theme/theme.inc and you'll find starting at line 104 the functions that generates the starting date label. Such as
So basically I copied that function into my template.php as so:
And it works great.
Comment #6
julien commented@jerrylow, thanks for that, indeed it's better using this than my solution.
Comment #7
damienmckenna