In the Event block, I want to remove the iCal link and add the word "in" to the output for $timeleft because I think it's confusing otherwise.
I was able to do this with a couple simple changed to event.module... BUT as soon as I uploaded the edited event.module file, every single time I make any administrative changes (not necessarily related to Event) I am brought to a blank screen and when I refresh the page, I get this error message:
warning: Cannot modify header information - headers already sent by (output started at /home/content/d/c/j/dcjwj/html/sites/all/modules/event/event.module:1) in /home/content/d/c/j/dcjwj/html/includes/common.inc on line 311.
I'm relatively new to PHP so I might be doing something stupid. I was editing event.module with Notepad. Even if I change nothing but simply open and re-save event.module with Notepad and upload it, this error starts happening every time I try to save administrative changes... so for now, I've just restored the original event.module file.
Is there anyway to make edits to the block (like removing the iCal icon and editing the $timeleft output) without triggering this error?
Thanks!
Comments
Comment #1
killes@www.drop.org commentedthe proper way is to nbot modify the module file, but to override the theme function that governs the part of the output that you want to change in your theme.
For what you want to do you need to look at theme_event_upcoming_item and theme_event_ical_link.
For your error: notepad probably messed the file up somehow.
Comment #2
(not verified) commented