You are here

function vbo_export_help in VBO export 7

Same name and namespace in other branches
  1. 8.3 vbo_export.module \vbo_export_help()
  2. 8 vbo_export.module \vbo_export_help()
  3. 8.2 vbo_export.module \vbo_export_help()

Implements hook_help().

File

./vbo_export.module, line 237
Provides VBO action to create a csv based on returned results.

Code

function vbo_export_help($path, $arg) {
  switch ($path) {
    case 'admin/help#vbo_export':
      $filepath = dirname(__FILE__) . '/README.md';
      if (file_exists($filepath)) {
        $readme = file_get_contents($filepath);
        if (module_exists('markdown')) {
          $filters = module_invoke('markdown', 'filter_info');
          $info = $filters['filter_markdown'];
          if (function_exists($info['process callback'])) {
            $output = $info['process callback']($readme, NULL);
            return $output;
          }
        }
        $output = '<pre>' . $readme . '</pre>';
        return $output;
      }
  }
}