Disable ical?

j10z - August 9, 2005 - 16:51

From my search of these forums, I conclude I'm the only one here who wants to get rid of the ical integration in the event module.
My users have enough trouble figuring out how to log in, and having an unwanted icon on the screen that pops up a WIndows error is enough to send them screaming from the room. Anyone have any suggestions?

same problem and solution

Goofy - August 10, 2005 - 12:26

i found an easy(dirty?) but working solution.
in event.module there are two lines (351 & 1631). i commented out these two lines and the icon disapeared. this works for me... and causes no problemes (until now!)

thanks, but...

j10z - August 12, 2005 - 00:15

Thanks much, but could I impose on you to list the text of those two lines? My editor doesn't count lines and I need to rely on finding text.

the two lines:

Goofy - August 13, 2005 - 08:59

Here the two lines:

$output .= theme('event_ical_link', 'event/ical/'. $node->filter);

$output .= theme('event_ical_link', 'event/ical');

try it

line numbers

bypass - May 18, 2006 - 09:38

In the most recent (17/05/06) cvs of the event module the line numbers are 393 and 1779. I used notepad++ to search for the 'event_ical_link' term.

I also want to get rid of the icon as users run when they see it and the error.
Bypass

Right way to remove ical function

trevortwining - July 31, 2006 - 02:51

I'm not professing to be the inventor of this, but recently stumbled across this information and hope it's useful to someone looking for the Drupal way of doing it.

You need to create an empty theme function in your theme. Because there's no instructions in the overridden function, it doesn't do anything and doesn't process the original instructions.

Example: in a project I'm working on I needed to eliminate the following items: XML icon for feeds, ical icon for iCal, and the more link on the calendar block. (client didn't want them in).

Rather than comment out the code above, enter these lines into your template.php file within your theme. NOTE: This assumes you're using phptemplate.

<?php

//note the empty curly braces, no instructions!
function customthemename_event_more_link($path) {}
function
customthemename_xml_icon(){}
function
customthemename_event_ical_link($path) {}


//I'm not certain that the $path variable is required in these, but it was in the original, so I left it. I don't think it matters one way or the other.
?>

Hope that helps someone.

Trevor Twining
http://www.trevortwining.info

Hi, I added your code to my

lsabug - September 6, 2006 - 14:54

Hi, I added your code to my template.php file in my spreadfirefox theme but it didn't remove anything. In particular, I'm trying to remove the link to the calendar that shows up on each event item. Hmmm?
Lsabug

Thanks it works

jm42 - February 16, 2007 - 00:30

I used this for Drupal 5.1. This is working for me. I had to change the xml icon to feed icon which I found referenced in the event.module.

<?php
//note the empty curly braces, no instructions!
//This is for using Garlend theme
function garland_event_more_link($path) {}
function
garland_feed_icon($path){}
function
garland_event_ical_link($path) {}


//I'm not certain that the $path variable is required in these, but it was in the original, so I left it. I don't think it matters one way or the other.
?>

Tried it again on 5.1 for

lsabug - June 24, 2007 - 15:57

Tried it again on 5.1 for latest events module and works. Thanks!

Almost

xscape31 - May 31, 2008 - 15:43

I too want to remove all three of these, but I don't have a file named template in my bluemarine theme folder.

Add template.php

lsabug - June 10, 2008 - 23:00

to your theme and enter the code there. Check out this handbook page:
http://drupal.org/node/11811

another quick and easy way to do it

flaxter - August 22, 2006 - 20:44

Add this to your theme's style sheet (style.css):

.ical-link { display: none; }

or even change it in the

mrschlei - July 21, 2007 - 21:39

or even change it in the bottom of event.css

 
 

Drupal is a registered trademark of Dries Buytaert.