CERN Profiles - Display Real Name

Overrides user login names with the LDAP DiplayName attribute, and optionally allows you to redirect to the Profiles website (http://profiles.web.cern.ch).

Uses

  1. Forcing real names to update: In the administration interface, by selecting "Update real name" from the Update Options the real names for the selected users will be updated.
  2. Changing path to the Profiles site: In the configuration settings interface, change the "Path to the default CERN Profiles site".

For developers and site builders

  • Views: The real name and the CCID have been exposed to Views: if you need to include it in a view you can add it as a field, a filter or a contextual filter.
  • Token: By enabling this module, the tokens will change: [user:name] will return the CERN Real name, while [user:name-raw] will return account name (NICE login name). You will also be able to access the CERN CCID for the user accounts.
  • If you are writing PHP code, you can use the functions:
    1. format_username($account)
      Parameters: The account object for the user whose name is to be formatted. (ie. the user object for the user "stomanin")
      Return value: An unsanitized string with the name and surname for the provided account to display. (ie. Silvia Tomanin)
    2. cern_profiles_displayname_link_to_profiles_site($account_name)
      Parameters: The account name for the user whose name is to be formatted. (ie. stomanin)
      Return value: An unsanitized string with the name and surname for the provided account to display, linking to their user profile on the CERN Profiles site. (ie. Silvia Tomanin)
Module classification: 
Module version: 
7.x-2.0-cern-rc4
Module homepage: 
module-catalogue/cern-profiles-display-real-name

You are here