Profile Map

John Money - July 23, 2008 - 22:03

Profile Map enables arbitrary profile fields to be mapped to a fixed data model in the $user object so that third-party modules can easily access the profile data. The module provides callbacks when the mapped profile fields are changed, for example, to require a form to be resubmitted on an address change. Profile Map also optionally themes the mapped profile fields to display as single fields on the user page, such as Full Name instead of two separate fields for First and Last names.

Profile Map categories:

  • Full Name: first, last
  • Address: street, city, state, postal, country
  • Phone: country code, area code, number
  • Messaging: service, username

Dependencies
Profile module

Installation

  1. install the module: copy the profile_map directory and all its contents to your modules directory
  2. enable the module: admin/build/modules
  3. configure the module: admin/user/profile/profile_map

Download
Download package and report bugs, feature requests, or submit a patch from the project page on the Drupal web site.

Developers
Profile Map adds the following data model to the $user object:

stdClass Object (
  [profile_map] => Array (
    [name] => Array (
      [first] => Theodore
      [last] => Williams
      [view] => Theodore Williams
    )
    [address] => Array (
      [street] => 4 Yawkey Way
      [city] => Boston
      [state] => MA
      [postal] => 02215
      [country] => United States
      [view] => 4 Yawkey Way, Boston, MA 02215
    )
    [phone] => Array (
      [countrycode] =>
      [areacode] => 999
      [number] => 999-9999
      [view] => (999) 999-9999
    )
    [messaging] => Array (
      [service] => AIM
      [username] => 400clubmember
      [view] => AIM: 400clubmember
    )
  )
)

Todo List
None

Credits
Module development sponsored by ConsumerSearch, a service of About.com, a part of The New York Times Company.

Releases

Official releasesDateSizeLinksStatus
5.x-1.12008-Jul-2510.54 KBRecommended for 5.xThis is currently the recommended release for 5.x.


 
 

Drupal is a registered trademark of Dries Buytaert.