views:

362

answers:

1

I am attempting to develop a Drupal module that defines the class MyFeedsSyndicationParser. This class extends the class FeedsSyndicationParser from the Feeds module. In my module's .info file the dependency on the Feeds module is identified.

When I enable the module the php_error.log contains: PHP Fatal error: Class 'FeedsSyndicationParser' not found in C:\wamp\apps\myapp\sites\all\modules\custom\myfeeds\MyFeedsSyndicationParser.inc on line 9

It seems that the FeedsSyndicationParser class has not yet been defined. Does Drupal have an API call that can be used to ensure that another module has been loaded? (In this case, the FeedsSyndicationParser.inc file.)

+5  A: 

use this to include: http://api.drupal.org/api/function/module_load_include/6

Nikit