Do You Want All Day

I was working with the date module today and wanted to remove the (All Day) that appeared after the date when the field was rendered to the screen. I found a great post here... http://www.pridedesign.ie/content/drupal-date-field-remove-all-day.

To summarise, it seems that a good way to turn it off (altogether) is just to override a theme function.

Edit you template.php and add the following code:
 

function _date_all_day_label() { return ''; }

However, I realized there was another option too.

One that didn't require editing of the template.php file, and could make some people quite happy. You only need to add a new custom format.


From there you can either use the "Short" format and set it to your new custom format or you can add a format style, and set it there.

tags: