You are here

function acquia_agent_refresh_status in Acquia Connector 6

Same name and namespace in other branches
  1. 6.2 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
  2. 7.3 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
  3. 7 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
  4. 7.2 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()

Menu callback for 'admin/settings/acquia-agent/refresh-status'.

1 string reference to 'acquia_agent_refresh_status'
acquia_agent_menu in acquia_agent/acquia_agent.module
Implementation of hook_menu().

File

acquia_agent/acquia_agent.module, line 228
Acquia Agent securely sends information to Acquia Network.

Code

function acquia_agent_refresh_status() {

  // Refresh subscription information, so we are sure about our update status.
  if (module_exists('acquia_spi')) {
    acquia_spi_send_profile_info();
  }

  // We send a heartbeat here so that all of our status information gets
  // updated locally via the return data.
  acquia_agent_check_subscription();

  // Return to the setting page (or destination)
  drupal_goto('admin/settings/acquia-agent');
}