You are here

function acquia_agent_valid_credentials in Acquia Connector 7.3

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

Validate identifier/key pair via XML-RPC call to Acquia Insight address.

This is generaly only useful when actually entering the values in the form. Normally, use acquia_agent_check_subscription() since it also validates the response.

1 call to acquia_agent_valid_credentials()
acquia_agent_settings_form in acquia_agent/acquia_agent.pages.inc
Settings form builder function.

File

acquia_agent/acquia_agent.module, line 579
Acquia Agent securely sends information to Acquia Insight.

Code

function acquia_agent_valid_credentials($identifier, $key, $acquia_network_address = NULL) {
  $data = acquia_agent_call('acquia.agent.validate', array(), $identifier, $key, $acquia_network_address);
  return (bool) $data['result'];
}