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.
Calling kprint_r() only dumps the structure and ignores the name parameter when using krumo.
This patch outputs the name using dprint_r() before calling krumo().
Comment | File | Size | Author |
---|---|---|---|
devel.module.patch | 580 bytes | Daniel Norton | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedlooked at the patch and it seems a bit more complex than what i expected. can it be simplified?
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedComment #3
salvisThis bothers me, too. Can't we just change
to
?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedlooks fine to me. you may commit this, salvis. my checkout is in flux right now.
Comment #5
salvisCommitted to all three versions, thanks.
While looking at the D5 version I found this:
'print_r'
at the bottom is hard-coded rather than using$function
. This is unchanged from the original patch that introduced the function in #232570: Krumo Devel 5.x backport. It was fixed for D6 in #260197: Typo in kprint_r, but not for D5. Shall I fix it?Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedSure, fix for d5. you can do whatever you want with that branch. its dead to me :)
Comment #7
salvisOk, done. :)