NYC-Camp/website — pull request #150 by esod (2014-03-14 14:39:11+00:00)
Title: QR code for user profiles

The QR code is an additional tab in the user's profile. To change the contents of the QR code, go to:

admin/config/people/accounts/fields/field_mobile_code

http://qr-code3-nyccamp2014.gotpantheon.com/admin/config/people/accounts/fields/field_mobile_code

and populate the Mobile Code's Default value with tokens or plain text. Line breaks in the Default value are respected.

At the moment the QR code contains the sample tokens:

[current-user:mail]
[current-user:field-profile-first] [current-user:field-profile-last]

which means you can log in to your account on:

http://qr-code3-nyccamp2014.gotpantheon.com/user/YOUR_ID/qr-code

and read the contents of QR code with a QR reader app. I've tested the QR code with Quick Scan and QRReader on my iPhone and the data comes through just fine.

Additionally the QR code can be updated on the fly because it uses a rule Default value for field_mobile_code whose event is User account page is viewed.