Active
Project:
Drupal for Facebook
Version:
6.x-3.0-rc12
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2011 at 22:30 UTC
Updated:
1 Jun 2011 at 08:08 UTC
Would it be possible to use the Rules module to populate a cck field with the user's first name and last initial when registering on my canvas app?
I am hoping it is possible with the "when user registers" trigger and "populate field" action, but I am not sure what PHP code to use:
return array(
0 => array('value' => ' ')
);
Comments
Comment #1
Dave Cohen commentedSearch this issue queue for other threads about rules module. There may be useful info.
I don't know if that trigger fires when fb_user.module creates a user. But it will call hook_fb_user(), so you can write some custom code there.
Comment #2
okmi commentedHere is my relatively bootleg way of doing it with profile fields. Hopefully you can try something similar in your own module.
Comment #3
jghyde commentedhere's my technique: