Mouse tooltip

mustafadur - February 8, 2009 - 16:53
Project:Event
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I am trying to add tooltip to events. I have tried many suggestions but couldn't applied it because they are for v5. I just want to see the title of the event when I mouse over it. I think this feature will be very essential addition to event. Thanks.

#1

mustafadur - March 10, 2009 - 12:45
Status:active» needs review

After long try&errors I have managed to port 5.x patch to drupal. Enjoy. All credit goes to original author. I wish he could do it and not costs me weeks. Anyway at least I learned something :)

AttachmentSize
event_title.patch 1.03 KB

#2

hutch - March 11, 2009 - 15:44

I haven't got an event module set up in D6 but have for D5, so I manually inserted the code from the patch, had to change one line

    return l((int)$date['day'], 'event/'. _event_format_url($date) .'/day', array('attributes' => array('title' => $eventlist)) );

to

   return l((int)$date['day'], 'event/'. _event_format_url($date) .'/day', array('title' => $eventlist));

This is due to the change in usage of l() in D6

The patch works fine, nice feature!

#3

jannalexx - October 13, 2009 - 19:23

patch works for 6.x 2.x-dev

 
 

Drupal is a registered trademark of Dries Buytaert.