You are here

function acquia_agent_delete_submit in Acquia Connector 7

Same name and namespace in other branches
  1. 6 acquia_agent/acquia_agent.pages.inc \acquia_agent_delete_submit()

Delete acquia_agent settings.

1 string reference to 'acquia_agent_delete_submit'
acquia_agent_settings_form in acquia_agent/acquia_agent.pages.inc
Settings form builder function.

File

acquia_agent/acquia_agent.pages.inc, line 616
Acquia Agent configuration page.

Code

function acquia_agent_delete_submit($form, &$form_state) {
  variable_del('acquia_key');
  variable_del('acquia_identifier');
  variable_del('acquia_network_address');
  variable_del('acquia_subscription_data');
  drupal_set_message(t('Your Acquia configuration has been deleted.'));

  // Redirect to the path with the suffix.
  $form_state['redirect'] = 'admin/config/system/acquia-agent/connection';
  cache_clear_all();

  // Notify everybody that the subscription status may have changed.
  module_invoke_all('acquia_subscription_status', FALSE);
}