function salesforce_api_init in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 salesforce_api/salesforce_api.module \salesforce_api_init()
Implements hook_init(). Checks to see if the Salesforce PHP Toolkit is installed, and warns if it is not.
File
- salesforce_api/
salesforce_api.module, line 110 - Defines an API that enables modules to interact with the Salesforce server.
Code
function salesforce_api_init() {
if (!salesforce_api_toolkit_installed() && user_access('administer salesforce')) {
drupal_set_message(t('Salesforce API installed, but missing Salesforce PHP Toolkit. Please make sure Salesforce PHP Toolkit is available at ' . SALESFORCE_DIR_SOAPCLIENT . '/SforceEnterpriseClient.php'), 'error');
drupal_set_message(t('This message will appear as long as Salesforce API is enabled and the Salesforce PHP Toolkit is missing. Please refer to README.txt or INSTALL.txt for additional information.'), 'error');
}
}