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.
Seems results of that call doesn't used, and parameters didn't modified be reference.
Comment | File | Size | Author |
---|---|---|---|
#1 | remove-useless-node_type_get_type-call-1886870.patch | 657 bytes | IRuslan |
Comments
Comment #1
IRuslan CreditAttribution: IRuslan commentedPatch is added.
Comment #2
arknoll CreditAttribution: arknoll commentedPatch does remove an unneeded call to node_type_get_type.
Comment #3
David_Rothstein CreditAttribution: David_Rothstein commentedLooks good, and looks like the equivalent code in Drupal 8 does not have this issue.
Committed to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/6bcb0a3
Comment #4.0
(not verified) CreditAttribution: commentedFix typo.