I have a site where the user's have multiple cck date fields that HAVE to have a time specified. By default, empty time fields are interpreted with the all day option. Other than using a custom validation handler for the cck_type_node_form enforcing this requirement, is there some other way to make the date module not allow the all day option?

Thanks for any help or suggestions.

Comments

arlinsandbulte’s picture

Category: task » feature
bricef’s picture

I think we can bring the google calendar method : Add a checkbox all day that will hide and erase times input.

What do u think?

Mindy’s picture

I have spent hours trying to stop the "(All day)" from appearing. Is there an easy way to do this in the settings?

arlinsandbulte’s picture

Component: Date CCK Field » Code
Status: Active » Fixed

flapsjack & bricef: Try the Date Tweaks module. It might do what you want.

Mindy: You can use a theme function to suppress 'All Day' if you wish.
Add this to you theme's template.php file:

function THEMENAME_date_all_day_label() {
  return '';
}

Also, see this issue for more information & a patch in #24 for the latest version of Date:
#1017216: custom date format without time shows "all day"

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.