Commit 2e3e970f authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Removing old files.

parent 2988e9f0
# $Id$
#
# LANGUAGE translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# realname.module: n/a
# realname.info: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2008-06-03 14:26-0400\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#: realname.module:27 realname.info:0
msgid "RealName"
msgstr ""
#: realname.module:28
msgid "Configure which fields are used to create a user's RealName."
msgstr ""
#: realname.module:52
msgid "This page displays the status of and settings for the RealName module."
msgstr ""
#: realname.module:55
msgid "This simple module adds a \"realname\" element (method) to a user object when that object is loaded."
msgstr ""
#: realname.module:179
msgid "Separator"
msgstr ""
#: realname.module:180
msgid "This will be used between the fields to create the \"Real name.\" The default is a single blank."
msgstr ""
#: realname.module:187
msgid "Save"
msgstr ""
#: realname.module:0
msgid "realname"
msgstr ""
#: realname.info:0
msgid "Use user profile fields to build a 'realname' field in a user object."
msgstr ""
<?php
// $Id$
/**
* @file
* This include file intercepts the theme('username'... function
* and uses the RealName instead of the username.
*
* @copyright Copyright (c) 2007-2008 Nancy Wichmann. All rights reserved.
*/
/**
* Format a username. (copied from theme.inc)
*
* @param $object
* The user object to format, usually returned from user_load().
* @return
* A string containing an HTML link to the user's page if the passed object
* suggests that this is a site user. Otherwise, only the username is returned.
*/
function phptemplate_username($object) {
// If we have a user id but no realname, then make one.
if ($object->uid && !$object->realname) {
$account = user_load(array('uid' => $object->uid));
$object->realname = realname_make_name($object);
}
// else {
// }
if ($object->uid && $object->realname) {
// Shorten the name when it is too long or it will break many tables.
if (drupal_strlen($object->realname) > 20) {
$name = drupal_substr($object->realname, 0, 15) .'...';
}
else {
$name = $object->realname;
}
if (user_access('access user profiles')) {
$output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.')));
}
else {
$output = check_plain($name);
}
}
else if ($object->name) {
// Sometimes modules display content composed by people who are
// not registered members of the site (e.g. mailing list or news
// aggregator modules). This clause enables modules to display
// the true author of the content.
if ($object->homepage) {
$output = l($object->name, $object->homepage);
}
else {
$output = check_plain($object->name);
}
$output .= ' ('. t('not verified') .')';
}
else {
$output = variable_get('anonymous', t('Anonymous'));
}
return $output;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment