function boost_help in Boost 6
Same name and namespace in other branches
- 5 boost.module \boost_help()
Implementation of hook_help(). Provides online user help.
File
- ./
boost.module, line 175 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_help($path, $arg) {
switch ($path) {
case 'admin/help#boost':
if (file_exists($file = drupal_get_path('module', 'boost') . '/README.txt')) {
return '<pre>' . implode("\n", array_slice(explode("\n", @file_get_contents($file)), 2)) . '</pre>';
}
break;
case 'admin/settings/performance/boost':
return '<p>' . '' . '</p>';
}
//hack to get drupal_get_messages before they are destroyed.
$GLOBALS['_boost_message_count'] = count(drupal_get_messages(NULL, FALSE));
}