Nice and simple module that works as advertised :-)
May I suggest adding the following code to the module in order to expand the functionality to user contact forms?
if ($form_id == 'contact_mail_user') {
if (!empty($_GET['subject'])) {
$form['subject']['#default_value'] = check_plain($_GET['subject']);
}
if (!empty($_GET['message'])) {
$form['message']['#default_value'] = check_plain($_GET['message']);
}
}
I've tested it and it works without a problem. Since user contact forms don't have the category select list, the only ones necessary are the subject and message fields.
Thanks again for a module that now exactly meets my needs.
Cheers
- Roland Combes