Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having a module which declares a content type via hook_node_info(). The module also sets webform as dependency. How can I enable webform for this content type in codes so when my module is enabled, my content type is also webform-enabled.
Thanks!
Comments
Comment #1
quicksketchIn hook_enable() or hook_install():
Comment #2
quicksketchComment #2.0
quicksketchclarify