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.
If you define a content type through features, then add hook_validate to the module that Features creates, it is never called even though a the content type is defined via hook_node_info in the same module. Other custom hooks such as hook_node_presave are successfully called.
Comments
Comment #1
mpotter CreditAttribution: mpotter commentedNot sure how Features is supposed to fix this. Sounds like a core bug. Any ideas?
Comment #2
hefox CreditAttribution: hefox commentedhook_validate is a faux hook; it depends on 'base' or whatever that key is now (was module in d6?), same as hook_form, etc.