function acquia_agent_settings in Acquia Connector 7
Same name and namespace in other branches
- 6.2 acquia_agent/acquia_agent.module \acquia_agent_settings()
- 6 acquia_agent/acquia_agent.module \acquia_agent_settings()
- 7.3 acquia_agent/acquia_agent.module \acquia_agent_settings()
- 7.2 acquia_agent/acquia_agent.module \acquia_agent_settings()
Helper function so that we don't need to repeat defaults.
12 calls to acquia_agent_settings()
- acquia_agent_form_system_modules_alter in acquia_agent/
acquia_agent.module - Implementation of hook_form_[form_id]_alter()..
- acquia_agent_has_update_service in acquia_agent/
acquia_agent.module - Returns the stored subscription data if update service is enabled or FALSE otherwise.
- acquia_agent_network_address in acquia_agent/
acquia_agent.module - Helper function to build the xmlrpc target address.
- acquia_agent_settings_form in acquia_agent/
acquia_agent.pages.inc - Settings form builder function.
- acquia_agent_settings_form_page in acquia_agent/
acquia_agent.pages.inc - Menu callback for settings page.
File
- acquia_agent/
acquia_agent.module, line 465 - Acquia Agent securely sends information to Acquia Network.
Code
function acquia_agent_settings($variable_name) {
switch ($variable_name) {
case 'acquia_identifier':
return variable_get('acquia_identifier', '');
case 'acquia_key':
return variable_get('acquia_key', '');
case 'acquia_network_address':
return variable_get('acquia_network_address', 'https://rpc.acquia.com');
case 'acquia_subscription_data':
return variable_get('acquia_subscription_data', array(
'active' => FALSE,
));
}
}