By Jiou on
Hello,
I would like to know where the "mail" column of the table "comments" is filled in the code of Drupal 6, because my column is empty (except using Devel generate). I think I made something wrong with the modules I created or installed, but I don't understand how Drupal fill this column. The function comment_edit does not deal with $edit['mail'], the functions comment_save and comment_form do something like that :
$edit += array('name' => '', 'mail' => '', 'homepage' => '');
So I don't understand how it works.
Thank you for your help.
Jiou
Comments
In D6, that column is filled
In D6, that column is filled only for anonymous comment authors, and only if they have entered an e-mail address (remember comment settings are content type specific, and 'Anonymous commenting' setting for the content type in question must be either Anonymous posters may leave their contact information or Anonymous posters must leave their contact information).
For registered users, the column is not filled.
This is not very convenient in some situations, but it is so by design.
Thank you very much for your
Thank you very much for your answer. I thought the "mail" colum is filled in any case because an old version of my website does this way (I don't know why). I was afraid there was a dysfunction, but it is ok.