Same name and namespace in other branches
  1. 10 core/modules/announcements_feed/announcements_feed.module \announcements_feed_help()

Implements hook_help().

File

modules/announcements_feed/announcements_feed.module, line 36
Used to create an announcements feed using the JSON data from drupal.org.

Code

function announcements_feed_help($path) {
  if ($path == 'admin/help#announcements_feed') {
    $output = '';
    $output .= '<h3>' . t('About') . '</h3>';
    $output .= '<p>' . t('The Announcements module displays announcements from the Drupal community. For more information, see the <a href="@documentation">online documentation for the Announcements module</a>.', array(
      '@documentation' => 'https://www.drupal.org/docs/core-modules-and-themes/core-modules/announcements-feed',
    )) . '</p>';
    $output .= '<h3>' . t('Uses') . '</h3>';
    $output .= '<dl><dt>' . t('Accessing announcements') . '</dt>';
    $output .= '<dd>' . t('Users with the "View drupal.org announcements" permission may click on the "Announcements" item in the administration menu, or access <a href="@link">Announcements</a>, to see all announcements relevant to the Drupal version of your site.', array(
      '@link' => url('admin/announcements_feed'),
    )) . '</dd>';
    $output .= '</dl>';
    return $output;
  }
}