You are here

function acquia_spi_help in Acquia Connector 6

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

Implementation 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) {
  $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_result(db_query('SELECT nid FROM {node} where nid = %d', $welcome_nid))) {
      $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('Acquia Drupal welcome page', 'node/' . $nid);
      return '<p>' . t($txt, array(
        '!acquia_welcome' => $link,
      )) . '<p>';
    }
  }
}