function opigno_moxtra_app_update_7101 in Opigno Moxtra App 7
Check/set the status of the moxtra plan
File
- ./
opigno_moxtra_app.install, line 46 - Contains install instructions and logic
Code
function opigno_moxtra_app_update_7101() {
$organization = variable_get('opigno_moxtra_app_org_id', NULL);
if (!empty($organization)) {
$info = opigno_moxtra_app_api_opigno_get_organization_info();
if (!isset($info->opigno_error_message)) {
if ($info->active) {
variable_set('opigno_moxtra_app_status', 1);
return;
}
}
}
variable_set('opigno_moxtra_app_status', 0);
}