Declare the dependency from profile.module

lavignej - August 26, 2008 - 01:09
Project:WeatherFacti -- from a weather.com xml feed
Version:6.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

You can install WeatherFacti without Profile enabled, but you get an error related to profile_load_profile() when accessing Blocks. Enabling Profile fixes this, so you might want to add

dependencies[] = "profile"

to weatherfacti.info

#1

kiamlaluno - January 17, 2009 - 14:47
Title:Profile module required» Declare the dependency from profile.module

The alternative is to change the code so it first checks if the module is enabled, if weatherfacti.module is able to work also without the other module.

 
 

Drupal is a registered trademark of Dries Buytaert.