Add Global Switch

Gman - September 25, 2007 - 18:43
Project:Hovertips and Clicktips
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Adding an Admin setting to globally turn on or off the inclusion of the js/css. Since many pages may not use the hovertip functionality, it would be good to turn off the extra includes and call '_hovertip_init()' from inside the theme or other custom code. Very simple update but will allow better performance on pages without hovertip, if the dev uses '_hovertip_init()'.

AttachmentSize
hovertip_global_switch.patch1.02 KB

#1

btully - December 22, 2007 - 01:53

super! this is a much welcome addition. thanks :)

 
 

Drupal is a registered trademark of Dries Buytaert.