function salesforce_form_event_submit in Salesforce Suite 5
File
- ./
salesforce.module, line 293 - Original Creator, Maintainer & Developer: Steve McKenzie (http://drupal.org/user/45890) Drupal and Salesforce.com (mainly only working with contacts / leads but can be extended to do anything the salesforce API version 6 can do) Current…
Code
function salesforce_form_event_submit() {
global $user;
// only track logged in users since we need an account to associated them with
if ($user->uid == 0) {
return;
}
// grab our message to display as the description of this event in salesforce
$message = _salesforce_is_form('events', $form_values['form_id'], true);
// insert our event and yet again i find myself having to reload the user object to get my stuff? wtf?
$result = salesforce_event('insert', $form_values['form_id'], $message, user_load(array(
'mail' => $form_values['mail'],
)));
}