You are here

function instagram_feeds_help in Instagram Feeds 7

Same name and namespace in other branches
  1. 8 instagram_feeds.module \instagram_feeds_help()

Implements hook_help().

File

./instagram_feeds.module, line 51

Code

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