atrium_username
Component ID
1493082
Component name
atrium_username
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
1748
Component created
Component changed
Component body
atrium_username it is a Drupal feature for managing user name display in Open Atrium.
It's a lightweight alternative to realname module that try to "work" before theme layer (allowing users to plug their proper theme, not only the tao/ginkgo), using the node title of the user profile page to get the display name as follow:
function atrium_username_get_name($uid) {
static $users = array();
if (!isset($users[$uid])) {
// get data from db DIRECTLY
$users[$uid] = db_result(db_query("SELECT title FROM {node} WHERE type='profile' AND uid=%d", $uid));
}
return $users[$uid];
}
Notably it doesn't implements its own theme_username allowing another theme to override it.
The feature handles:
- Account Block
- User Profile
- Casetracker
- Theming User Name
- Notification
- User autocomplete
- Token
Details on implementations on drupal.sfsu.edu/atrium_username and slideshare presentation
The features is aimed to solve a well known issue of Open Atrium:
