You are here

function acquia_agent_valid_credentials in Acquia Connector 6

Same name and namespace in other branches
  1. 6.2 acquia_agent/acquia_agent.module \acquia_agent_valid_credentials()
  2. 7.3 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 Network 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.

2 calls to acquia_agent_valid_credentials()
acquia_agent_settings_form_page in acquia_agent/acquia_agent.pages.inc
Menu callback for settings page.
acquia_agent_set_validate in acquia_agent/acquia_agent.pages.inc
Validate acquia_agent_settings form submissions.

File

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

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'];
}