Hello,
It would be nice if this module could also work with Advanced User module: http://drupal.org/project/advuser
I tried to add a code in the module file, based on the code that was recently implemented for Author Contact to work with this Contact Save. Here is what I added:

  // Message generated by the ADVANCED USER MODULE
  if ($message['id'] == 'advuser_advance-user-mail') {
    $record = array(
      'mail_key' => $message['id'],
      'uid' => $user->uid ? $user->uid : db_result(db_query("SELECT uid FROM {users} WHERE mail = '%s'", $message['params']['site_mail'])),
      'name' => $message['params']['name'],
      'email' => $message['params']['site_mail'],
      'subject' => $message['params']['subject'],
      'recipients' => $message['to'],
      'message' => $message['params']['body'],
      'body' => implode("\n\n", $message['body']),
      'created' => time(),
    );
  }

but I'm getting an error:
implode() [function.implode]: Invalid arguments passed in /home/.../public_html/sites/all/modules/contact_save/contact_save.module

Comments

Ela’s picture

Messages are sent properly and are being saved, but when viewing them on the site, the "Message" section is fine, the "Full Message Body" part is missing, and the error posted above appears in the recent logs: admin/reports/dblog

Ela’s picture

.. All works well when deleted
'body' => implode("\n\n", $message['body']),
"Full message body" is not there when you view the message on the site .... but since there are no other fields that get attached to "Advanced User" and no additional messages that get attached to the message itself - it works for me.