You are here

function acquia_agent_has_credentials in Acquia Connector 7.3

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

Helper function to check if an identifier and key exist.

Return value

bool Has credentials.

6 calls to acquia_agent_has_credentials()
acquia_agent_check_subscription in acquia_agent/acquia_agent.module
Get subscription status from Acquia, and store the result.
acquia_agent_init in acquia_agent/acquia_agent.module
Implements hook_init().
acquia_agent_requirements in acquia_agent/acquia_agent.install
Implements hook_requirements().
acquia_agent_subscription_is_active in acquia_agent/acquia_agent.module
Helper function to check if the site has an active subscription.
acquia_spi_requirements in acquia_spi/acquia_spi.install
Implements hook_requirements().

... See full list

File

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

Code

function acquia_agent_has_credentials() {
  return (bool) (variable_get('acquia_identifier', FALSE) && variable_get('acquia_key', FALSE));
}