function acquia_agent_refresh_status in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
- 6 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
- 7 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
- 7.2 acquia_agent/acquia_agent.module \acquia_agent_refresh_status()
Menu callback for 'admin/config/system/acquia-agent/refresh-status'.
1 string reference to 'acquia_agent_refresh_status'
- acquia_agent_menu in acquia_agent/
acquia_agent.module - Implements hook_menu().
File
- acquia_agent/
acquia_agent.module, line 452 - Acquia Agent securely sends information to Acquia Insight.
Code
function acquia_agent_refresh_status() {
if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], 'admin/config/system/acquia-agent/refresh-status')) {
return MENU_ACCESS_DENIED;
}
// Refresh subscription information, so we are sure about our update status.
// 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/config/system/acquia-agent');
}