You are here

function datex_api_help in Datex 7

Implements hook_help().

File

datex_api/datex_api.module, line 14

Code

function datex_api_help($path, $arg) {
  if ($path == 'admin/config/regional/date-time/datex_api' || $path == 'admin/help#datex_api') {
    $output = '<p>';
    $output .= t('PHP-Intl is a php library available at !link', array(
      '!link' => l(t('Here'), 'http://pecl.php.net/intl'),
    ));
    $output .= '</p>';
    if (class_exists('IntlDateFormatter')) {
      $output .= t('It is currently available for this Drupal installation environment and can be used.');
    }
    else {
      $output .= t('It is currently NOT available for this Drupal installation environment and enabling this option will not affect the way %module works.', array(
        '%module' => 'Datex API',
      ));
    }
    $output .= '</p><p>';
    $output .= t('You can read more about it at !link', array(
      '!link' => l(t('Here'), 'http://www.drupalion.com/blog/123'),
    ));
    $output .= '</p>';
    return $output;
  }
}