Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Relname is not show as argument title. Instead of realname "Anonymous" is shown
I modify realname_plugin_argument_validate_user.inc file, so now it works fine
I just replace $argument with user_load($argument)
class realname_plugin_argument_validate_user extends views_plugin_argument_validate_user {
function validate_argument($argument) {
$result = parent::validate_argument($argument);
$this->argument->validated_title = realname_make_name(user_load($argument));
return TRUE;
}
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 1056032-fixvalidate-1-D6.patch | 596 bytes | eporama |
Comments
Comment #1
eporama CreditAttribution: eporama commentedJust as explanation, original function called
realname_make_name($account)
, but$account
was never defined.user_load($argument)
does the trick.I've rolled this as a patch against 6.x-1.x-dev. It works great for me, but I'll let someone else RTBC.
Comment #2
hass CreditAttribution: hass commented