additional_fields['realname'] = 'realname'; } function render_link($data, $values) { if (!empty($this->options['link_to_user']) || !empty($this->options['overwrite_anonymous'])) { $account = new stdClass(); $account->uid = $values->{$this->aliases['uid']}; if (!empty($this->options['overwrite_anonymous']) && !$account->uid) { // This is an anonymous user, and we're overriting the text. return check_plain($this->options['anonymous_text']); } elseif (!empty($this->options['link_to_user'])) { $account->name = $values->{$this->field_alias}; return theme('username', $account); } } // Otherwise, there's no special handling, so return the data directly. return $values->{$this->aliases['realname']}; } }