diff --git a/salesforce_api/salesforce_api.module b/salesforce_api/salesforce_api.module
index 685ec87..7d23806 100644
--- a/salesforce_api/salesforce_api.module
+++ b/salesforce_api/salesforce_api.module
@@ -11,7 +11,12 @@ define('SALESFORCE_API_CURRENT_VERSION', 1);
 
 // Define default directory paths for the Toolkit and WSDL files.
 define('SALESFORCE_DIR', drupal_get_path('module', 'salesforce_api'));
-define('SALESFORCE_DIR_TOOLKIT', libraries_get_path('salesforce') . '/toolkit');
+if (function_exists('libraries_get_path')) {
+  $toolkit_path = libraries_get_path('salesforce') . '/toolkit';
+} else {
+  $toolkit_path = 'sites/all/libraries/salesforce/toolkit';
+}
+define('SALESFORCE_DIR_TOOLKIT', $toolkit_path);
 define('SALESFORCE_DIR_SOAPCLIENT', SALESFORCE_DIR_TOOLKIT . '/soapclient');
 define('SALESFORCE_DIR_WSDL', SALESFORCE_DIR . '/wsdl');
 
