function acquia_agent_init in Acquia Connector 7
Same name and namespace in other branches
- 6.2 acquia_agent/acquia_agent.module \acquia_agent_init()
- 6 acquia_agent/acquia_agent.module \acquia_agent_init()
- 7.3 acquia_agent/acquia_agent.module \acquia_agent_init()
- 7.2 acquia_agent/acquia_agent.module \acquia_agent_init()
Implementation of hook_init().
File
- acquia_agent/
acquia_agent.module, line 87 - Acquia Agent securely sends information to Acquia Network.
Code
function acquia_agent_init() {
if (arg(0) != 'overlay-ajax' && arg(3) != 'acquia-agent' && empty($_POST) && user_access('administer site configuration') && !acquia_agent_has_credentials()) {
$message = t('Get a <a href="@acquia-free">free 30 day trial</a> of Drupal support, enhanced content search, comment spam blocking and more. If you have an Acquia Network subscription, <a href="@settings">connect now</a>. You can turn this message off by disabling the Acquia Network <a href="@admin-modules">modules</a> too.', array(
'@acquia-free' => url('admin/config/system/acquia-agent'),
'@settings' => url('admin/config/system/acquia-agent/connection'),
'@admin-modules' => url('admin/modules', array(
'fragment' => 'edit-modules-acquia-network-connector',
)),
));
drupal_set_message($message, 'warning', FALSE);
}
}