You are here

function boost_help in Boost 5

Same name and namespace in other branches
  1. 6 boost.module \boost_help()

Implementation of hook_help(). Provides online user help.

File

./boost.module, line 49
Provides static page caching for Drupal.

Code

function boost_help($section) {
  switch ($section) {
    case 'admin/modules#name':
      return t('boost');
    case 'admin/modules#description':
      return t('Provides a performance and scalability boost through caching Drupal pages as static HTML files.');
    case 'admin/help#boost':
      $file = drupal_get_path('module', 'boost') . '/README.txt';
      if (file_exists($file)) {
        return '<pre>' . implode("\n", array_slice(explode("\n", @file_get_contents($file)), 2)) . '</pre>';
      }
      break;
    case 'admin/settings/boost':
      return '<p>' . '</p>';
  }
}