It is better to check if the event and location modules are enabled using module_exist($module) if unavailable a help text saying Event module is not enabled, similarly for location module. Though the install.txt says that these modules must be enabled, a check would be necessary.
Comments
Comment #1
sjaensch commentedGood idea, fix is in CVS. Thanks!
Comment #2
(not verified) commented