Posted by thinguy on May 18, 2008 at 6:30pm
Jump to:
| Project: | Email Field |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I'd like to add the email CCK to a nodeprofile and make the default value the email they registered with.
Thanks for any tips.
Comments
#1
You could use the widgets default setting.
In the php code field in the widgets settings dialogue, enter something like:
<?phpglobal $user;
return array(
0 => array('your_field_name' => $user->mail),
);
?>
There is a hint below the code box where you can find your_field_name.