function salesforce_api_toolkit_installed in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 salesforce_api/salesforce_api.module \salesforce_api_toolkit_installed()
Simple check for Salesforce Toolkit.
Return value
TRUE if toolkit is present, FALSE otherwise.
3 calls to salesforce_api_toolkit_installed()
- salesforce_api_connect in salesforce_api/
salesforce_api.module - Creates an object used for communicating with the Salesforce server and performs a login to verify the API credentials.
- salesforce_api_init in salesforce_api/
salesforce_api.module - Implements hook_init(). Checks to see if the Salesforce PHP Toolkit is installed, and warns if it is not.
- salesforce_api_requirements in salesforce_api/
salesforce_api.install - Implements hook_requirements().
File
- salesforce_api/
salesforce_api.module, line 979 - Defines an API that enables modules to interact with the Salesforce server.
Code
function salesforce_api_toolkit_installed() {
if (file_exists(SALESFORCE_DIR_SOAPCLIENT . '/SforceEnterpriseClient.php')) {
return TRUE;
}
else {
return FALSE;
}
}