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 commentedPatch attached
Comment #2
hefox commentednode_load is cached and the node edit page will need to have loaded the node