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.
There is a function ideation_admin_paths_alter that does node_load just to find out type of a node. That is very wasteful (=slow) and also buggy - there are modules (such as SPS) that will implement node_load hook and call path_is_admin() which will result in calling ideation_admin_paths_alter, causing a nested loop.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2051007.patch | 1.11 KB | meba |
Comments
Comment #1
meba CreditAttribution: meba commentedPatch attached
Comment #2
hefox CreditAttribution: hefox commentednode_load is cached and the node edit page will need to have loaded the node