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.
Did some timing for $op's and realname came in fourth for 'validation' hook, which is a bit surprising considering it's not even using that hook.
Comment | File | Size | Author |
---|---|---|---|
#4 | realname_1630900_nodeapi-1.patch | 3.54 KB | hefox |
#2 | realname_1630900_nodeapi-1.patch | 3.5 KB | hefox |
realname_nodeapi.patch | 3.51 KB | hefox | |
Comments
Comment #2
hefox CreditAttribution: hefox commentedThis didn't seem to help much, so removed it
Having this static cached here seemed just wrong, so moved into actual function
This could cause bugs if calling node_save during drush, so moved it only to the places it matters, e.g. the replacement that is done so realname's display.
This seems to be a faster equivalent to the original logic.
If ya going to have a replacement for user_load, should use it.
Comment #4
hefox CreditAttribution: hefox commentedLet's abuse testbot and see if I can trick it into believing I made this patch against dev
Comment #6
hefox CreditAttribution: hefox commentedBoo, obviously I can't fake out testbot and really need to roll it against -dev. Sigh, will get to it eventually hopefully..
Comment #7
hass CreditAttribution: hass commented