function _uc_stripe_load_api in Ubercart Stripe 6.2
Same name and namespace in other branches
- 6 uc_stripe.module \_uc_stripe_load_api()
- 7 uc_stripe.module \_uc_stripe_load_api()
Load the PHP API
Return value
bool
2 calls to _uc_stripe_load_api()
- uc_stripe_requirements in ./
uc_stripe.install - Implements hook_requirements().
- _uc_stripe_prepare_api in ./
uc_stripe.module - Load stripe API
File
- ./
uc_stripe.install, line 59 - Installation file for the uc_stripe module.
Code
function _uc_stripe_load_api() {
$path = libraries_get_path('stripe');
$loaded = @(include_once $path . '/lib/Stripe.php');
if (empty($path) || empty($loaded)) {
watchdog('uc_stripe', 'Stripe PHP API Library not found. Please install into sites/all/libraries/stripe', array(), WATCHDOG_ERROR);
return FALSE;
}
return TRUE;
}