You are here

function acquia_agent_migrate_cleanup_submit in Acquia Connector 7.2

Same name and namespace in other branches
  1. 6.2 acquia_agent/acquia_agent.pages.inc \acquia_agent_migrate_cleanup_submit()
1 string reference to 'acquia_agent_migrate_cleanup_submit'
acquia_agent_settings_form in acquia_agent/acquia_agent.pages.inc
Settings form builder function.

File

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

Code

function acquia_agent_migrate_cleanup_submit($form, &$form_state) {
  module_load_include('inc', 'acquia_agent', 'acquia_agent.migrate');
  $migration = variable_get('acquia_agent_cloud_migration', array());
  _acquia_migrate_cleanup($migration);
  drupal_set_message(t('Temporary files removed'));
  $form_state['redirect'] = array(
    'admin/config/system/acquia-agent',
  );
}