Creating a content type on _install() will break if aggregator is included in an installer profile because at the time the module is installed, no other module is available.
-> Move creation of content type to hook_enable()
This requires a test whether the content type already exists, because enable is called everytime a module is selected on the admin/build/modules page, not only when it is selected the first time (=installed)
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/new_aggrega...
Comments
Comment #1
aron novakComment #2
mustafau commentedThere is nothing wrong with creating content type in _install() hook. Book module does it. Creating content type requires node module and node module is available to install profiles.
Comment #3
mustafau commentedSee http://api.drupal.org/api/function/book_install
Comment #4
alex_b commented@mustafau: thanks for the heads up. I wasn't aware of this.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.