You are here

function acquia_spi_help in Acquia Connector 7

Same name and namespace in other branches
  1. 6.2 acquia_spi/acquia_spi.module \acquia_spi_help()
  2. 6 acquia_spi/acquia_spi.module \acquia_spi_help()
  3. 7.3 acquia_spi/acquia_spi.module \acquia_spi_help()
  4. 7.2 acquia_spi/acquia_spi.module \acquia_spi_help()

Implements of hook_help().

File

acquia_spi/acquia_spi.module, line 11
Send site profile information (SPI) and system data to Acquia Network.

Code

function acquia_spi_help($path, $arg) {
  if ($path == 'admin/help#acquia_spi' && ($welcome_nid = variable_get('acquia_welcome', 0))) {

    // 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()) {
      return '<p>' . t('The <a href="@welcome_url">Acquia Drupal welcome page</a> 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.', array(
        '@welcome_url' => url('node/' . $nid),
      )) . '<p>';
    }
  }
}