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;
  }
} 
CommentFileSizeAuthor
#1 1056032-fixvalidate-1-D6.patch596 byteseporama
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eporama’s picture

Status: Active » Needs review
FileSize
596 bytes

Just 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.

hass’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)