You are here

function acquia_spi_send_profile_info in Acquia Connector 7

Same name and namespace in other branches
  1. 6 acquia_spi/acquia_spi.module \acquia_spi_send_profile_info()

Send site profile information to Acquia Network via XML-RPC.

4 calls to acquia_spi_send_profile_info()
acquia_agent_manual_status in acquia_agent/acquia_agent.module
Substituted menu callback for 'admin/reports/updates/check'.
acquia_agent_refresh_status in acquia_agent/acquia_agent.module
Menu callback for 'admin/config/system/acquia-agent/refresh-status'.
acquia_spi_agent_settings_submit in acquia_spi/acquia_spi.module
Added submit function for acquia_agent_settings form.
acquia_spi_cron in acquia_spi/acquia_spi.module
Implements hook_cron().

File

acquia_spi/acquia_spi.module, line 52
Send site profile information (SPI) and system data to Acquia Network.

Code

function acquia_spi_send_profile_info() {

  // Do nothing unless we have credentials.
  if (acquia_agent_has_credentials()) {
    $spi = acquia_spi_get();
    $data = acquia_agent_call('acquia.spi.update', $spi);
    return (bool) $data['result'];
  }
  return FALSE;
}