You are here

function acquia_agent_delete_submit in Acquia Connector 6

Same name and namespace in other branches
  1. 7 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 620
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/settings/acquia-agent/connection';
  cache_clear_all();
}