You are here

function close_registration in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

1 string reference to 'close_registration'
miniorange_saml_menu in ./miniorange_saml.module

File

./miniorange_saml.module, line 160
Module file for miniOrange SAML Module.

Code

function close_registration() {
  $b_url = Utilities::miniorange_get_baseURL();
  $requestUrl = $b_url . '/admin/config/people/miniorange_saml/licensing';
  if (Utilities::isCustomerRegistered()) {
    variable_set('miniorange_saml_status', 'CUSTOMER_SETUP');
    variable_del('miniorange_saml_customer_admin_email');
    variable_del('miniorange_saml_customer_admin_phone');
    variable_del('miniorange_saml_tx_id');
  }
  drupal_goto($requestUrl);
}