Download & Extend

How do I make the default value the email field from the user registration?

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:

<?php
global $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.

nobody click here