function sf_notifications_enable in Salesforce Suite 6.2
Same name and namespace in other branches
- 7.2 sf_notifications/sf_notifications.install \sf_notifications_enable()
@file
File
- sf_notifications/
sf_notifications.install, line 8
Code
function sf_notifications_enable() {
global $base_url;
$sfuser = variable_get('salesforce_api_username', 'user@example.com');
$formula = '<code>NOT($User.Username = \'' . $sfuser . '\')</code>';
$args = array(
'!messages' => 'https://na1.salesforce.com/04k',
'!workflow' => 'https://na1.salesforce.com/01Q',
'!base_url' => $base_url,
'!formula' => $formula,
);
drupal_set_message(t('You have successfully enabled SalesForce Notifications. To make use
of this module, you will probably want to head over to salesforce.com and
<a href="!message">set up some outbound messages</a> and <a href="!workflow">
associate them with workflow rules</a>. Point the outbound message(s) to
!base_url and set up the workflow rules to fire when the user is NOT your
SFDC API user. Use the following formula if you are unsure: !formula.', $args), 'warning');
}