atrium_username


This project is not covered by Drupal’s security advisory policy.

atrium-account block

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:


atrium_username项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。

项目分类:

周安装量: 
10
维护状态: 
积极维护中
开发状态: 
积极开发中