(Drupal v 4.7.4, Event Module 4.7.x-1.x-dev)

My users only need to enter the "Start date" and time for an event. (All the events are concerts, so the "End Date" and time are not relevant.) Everything works fine providing they leave the "End date" and time at the default value (which is earlier than the entered value for "Start date"). They may get unexpected results if they modify the "End date". Eg they may think they are entering a repeat event by setting the "End date" for the following day, but they end up with one concert lasting over 24 hours!

Can anyone please suggest a way of hiding the "End date" and time entry boxes altogether?

Comments

ludwikg’s picture

Hello,

I have the same problem. Could anyone at least indicate us to a correct direction (what to change?). Thanks!

untrammelled’s picture

I have submitted a feature request (http://drupal.org/node/108690) so there may be a solution in the longer term. Meanwhile, it might be possible to hack the code, but I'm not sure which file to look at.

Chris

liquidcms’s picture

well i started down the path of simply hiding the form field.. but that won't work since the event validation code want to see it.

Also, since the event calendars seem to want to show size of the event it really does need a start and end.. in my particular case my client wants to enter start and length.. so i figured i would just calc the end and fill in the field when i submit the form.. but unfortunately the event module chokes on the validation before i get a chance to set the field.

i think since i am in a rush to get this out.. i will simply hack out the validation check on end date and do the rest as i described..

- remove the field with hook_form_alter
- fill in the table value as a function on start and length

Peter Lindstrom
LiquidCMS - Content Management Solution Experts