function acquia_lift_is_configured in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7.3 acquia_lift.module \acquia_lift_is_configured()
Checks whether or not Acquia Lift has been properly configured.
Return value
bool
2 calls to acquia_lift_is_configured()
- acquia_lift_debug_mode_enabled in ./
acquia_lift.module - Determines if the Lift debugger should be enabled on the page request.
- acquia_lift_form_personalize_campaign_wizard_alter in ./
acquia_lift.module - Implements hook_form_FORM_ID_alter().
File
- ./
acquia_lift.module, line 3390 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_is_configured() {
$account_info = acquia_lift_get_account_info();
$api_configured = TRUE;
$required_info = array(
'public_key',
'private_key',
'api_url',
);
foreach ($required_info as $api_config) {
if (empty($account_info[$api_config])) {
$api_configured = FALSE;
}
}
$js_path = variable_get('acquia_lift_profiles_js_path', '');
return $api_configured && !empty($js_path);
}