Posted by oddible on September 15, 2009 at 5:58pm
Struggling a bit navigating some of the documentation. Having some trouble finding out the list of properties available in the $user reference. Trying to get at the email address and find out if it has been verified. If the user changes their email address in 6.x does it require them to re-validate?
Thanks.
Comments
Enable php filter. Make a
Enable php filter. Make a page node, contents:
<?phpprint '<pre>';
global $user;
var_dump($user);
print '</pre>';
?>
Select PHP as the input format
The page will show you what a user object looks like. Unless you have some module like logintoboggan installed, an authenticated user role means the email has been verified.
"If the user changes their email address in 6.x does it require them to re-validate?"
http://drupal.org/project/email_confirm
_
what's available in $user will vary depending on the context and enabled modules. The easiest way to see what's available is to do something like:
global $user;print "<pre>";
print_r($user);
print "</pre>";
If you use the devel module you can get a much friendlier output using 'dsm($user);' instead.
I'm not sure how to know if the email verification process has been completed-- I would think if you require verification and there's a login and/or access timestamp it's been verified but I'm not positive.
And no, afaik, changing email does not trigger a revalidation.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.