theme_uc_uid() is now just a thin wrapper around '#theme' => 'username'. Visually as well as in the raw HTML the output is identical. theme_uc_uid() doesn't provide any additional functionality except for outputting a '-' if the uid is not passed in, and we never use that functionality.
Better to rely on the core function to ensure consistent output and to reduce Ubercart-specific code.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uc_uid.patch | 6.18 KB | tr |
| uc_uid.patch | 5.97 KB | tr |
Comments
Comment #2
tr commentedComment #3
longwaveThe '-' showed up instead of 'Anonymous' or whatever uid 0 shows up as; I think this is used by admin/order comments created by e.g. payment gateways as they don't really belong to a user. Still, we could handle this in the comment display controller rather than having a theme function for it, if this turns out to be a problem.
Comment #5
longwaveStill happy to get this committed and deal with any fallout later.
Comment #7
longwave