Eliminating the Event module iCalendar link - block only

bwill - May 9, 2008 - 15:07

I installed the Events module and added the Upcoming Events block to my side bar. The iCalendar and more links appear in both the block and event description. I found the code below in the event.theme file, and of course commenting it out gets rid of it in both places. How can I get rid of these in the only the block? I'm sure I can add an if statement, but I don't know php. Thanks

function theme_event_ical_link($path) {
  return '<div class="ical-link">'. l('<img src="'. base_path() . drupal_get_path('module', 'event') .'/images/ical16x16.gif" alt="'.t('Add to

iCalendar').'" />', $path, array('title' => t('Add this calendar to your iCalendar')), NULL, NULL, TRUE, TRUE) .'</div>';
}

I added this to a theme's

davedelong - May 9, 2008 - 15:17

I added this to a theme's style.css:

.ical-link {
display: none;
}

And *poof* it's gone.

HTH,

Dave

Thanks Dave - that did the

bwill - May 9, 2008 - 16:15

Thanks Dave - that did the trick

 
 

Drupal is a registered trademark of Dries Buytaert.