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

CommentFileSizeAuthor
#1 hook_node_type_update_1362796.patch1.79 KBwonder95
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wonder95’s picture

It 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).

wonder95’s picture

Status: Needs work » Needs review
kle’s picture

Thank you and sorry for the late answer - I was not following this thread...

pwolanin’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

This would be a nice thing to have tests to verify.

pwolanin’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 596ee4d on 7.x-1.x, 8.x-1.x authored by wonder95, committed by pwolanin:
    Issue #1362796 by wonder95: Fix for hook_node_type was not updated for...