function acquia_spi_help in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_help()
- 6 acquia_spi/acquia_spi.module \acquia_spi_help()
- 7 acquia_spi/acquia_spi.module \acquia_spi_help()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_help()
Implements hook_help().
File
- acquia_spi/
acquia_spi.module, line 23 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_help($path, $arg) {
$welcome_nid = variable_get('acquia_welcome', 0);
if ($path == 'admin/help#acquia_spi' && $welcome_nid) {
// Only provide help text if the welcome message is avalailable.
if ($nid = db_query('SELECT nid FROM {node} where nid = :nid', array(
':nid' => $welcome_nid,
))
->fetchField()) {
$txt = 'The !acquia_welcome provides information about how to ' . 'quickly get your site up and running. Also there are instructions for ' . 'setting the site theme as well as many other configuration tasks.';
$link = l(t('Acquia Drupal welcome page'), 'node/' . $nid);
// phpcs:ignore
return '<p>' . t($txt, array(
'!acquia_welcome' => $link,
)) . '<p>';
}
}
}