You are here

function tinypng_help in TinyPNG 7

Implements hook_help().

File

./tinypng.module, line 26
Provides TinyPNG integration.

Code

function tinypng_help($path, $arg) {
  switch ($path) {
    case 'admin/help#tinypng':
      $output = file_get_contents(drupal_get_path('module', 'tinypng') . '/README.txt');
      return module_exists('markdown') ? filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output)) : '<pre>' . check_plain($output) . '</pre>';
  }
}