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.
In both the 1.0beta and dev I found a function clone_node_type as implementation of hook_node_type.
But there is no hook_node_type in Drupal 7.
There only exists hook_node_type_delete /update /insert
Maybe this can lead to some misbehaviors...
Greetings from Hamburg - Kle
Comment | File | Size | Author |
---|---|---|---|
#1 | hook_node_type_update_1362796.patch | 1.79 KB | wonder95 |
Comments
Comment #1
wonder95 CreditAttribution: wonder95 commentedIt appears that this is a holdover from D6 that never got cleaned up. The attached patch converts node_clone_type() to clone_node_type_delete() and clone_node_type_update() (the insert op isn't implemented).
Comment #2
wonder95 CreditAttribution: wonder95 commentedComment #3
kle CreditAttribution: kle commentedThank you and sorry for the late answer - I was not following this thread...
Comment #4
pwolanin CreditAttribution: pwolanin commentedThis would be a nice thing to have tests to verify.
Comment #5
pwolanin CreditAttribution: pwolanin commentedcommitted