//Arreglo de nombres de usuario de drupal
function themename_preprocess_username(&$variables) {
$account = $variables ['account'];
$variables ['extra'] = '';
if (empty($account->uid)) {
$variables ['uid'] = 0;
if (theme_get_setting('toggle_comment_user_verification')) {
$variables ['extra'] = ' (' . t('not verified') . ')';
}
}
else {
$variables ['uid'] = (int) $account->uid;
}
$name = $variables ['name_raw'] = format_username($account);
if (drupal_strlen($name) > 90) {
$name = drupal_substr($name, 0, 80) . '...';
}
$variables ['name'] = check_plain($name);
}
Check for username of drupal, show complete name.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.