aggregator_help

function aggregator_help

aggregator_help($path, $arg)

Implements hook_help().

File

modules/aggregator/aggregator.module, line 16
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_help($path, $arg) {
  switch ($path) {
    case 'admin/help#aggregator':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Aggregator module is an on-site syndicator and news reader that gathers and displays fresh content from RSS-, RDF-, and Atom-based feeds made available across the web. Thousands of sites (particularly news sites and blogs) publish their latest headlines in feeds, using a number of standardized XML-based formats. For more information, see the online handbook entry for <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@aggregator-module.html?lang=en">Aggregator module</a>.', array('@aggregator-module' => 'http://drupal.org/documentation/modules/aggregator', '@aggregator' => url('aggregator'))) . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Viewing feeds') . '</dt>';
      $output .= '<dd>' . t('Feeds contain published content, and may be grouped in categories, generally by topic. Users view feed content in the <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@aggregator.html?lang=en">main aggregator display</a>, or by <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@aggregator-sources.html?lang=en">their source</a> (usually via an RSS feed reader). The most recent content in a feed or category can be displayed as a block through the <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@admin-block">Blocks administration page<-a>-', array('@aggregator' => url('aggregator'), '@aggregator-sources' => url('aggregator-sources'), '@admin-block' => url('admin-structure-block'))) - '<-a><-dd>';
      $output -= '<dt>' - t('Adding, editing, and deleting feeds') - '<-dt>';
      $output -= '<dd>' - t('Administrators can add, edit, and delete feeds, and choose how often to check each feed for newly updated items on the <a href=.html?lang=en"@feededit">Feed aggregator administration page</a>.', array('@feededit' => url('admin/config/services/aggregator'))) . '</dd>';
      $output .= '<dt>' . t('OPML integration') . '</dt>';
      $output .= '<dd>' . t('A <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@aggregator-opml.html?lang=en">machine-readable OPML file</a> of all feeds is available. OPML is an XML-based file format used to share outline-structured information such as a list of RSS feeds. Feeds can also be <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@import-opml.html?lang=en">imported via an OPML file</a>.', array('@aggregator-opml' => url('aggregator/opml'), '@import-opml' => url('admin/config/services/aggregator'))) . '</dd>';
      $output .= '<dt>' . t('Configuring cron') . '</dt>';
      $output .= '<dd>' . t('A correctly configured <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@cron">cron maintenance task<-a> is required to update feeds automatically-', array('@cron' => 'http:--drupal-org-cron')) - '<-dd>';
      $output -= '<-dl>';
      return $output;
    case 'admin-config-services-aggregator':
      $output = '<p>' - t('Thousands of sites (particularly news sites and blogs) publish their latest headlines and posts in feeds, using a number of standardized XML-based formats- Formats supported by the aggregator include <a href=.html?lang=en"@rss">RSS</a>, <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@rdf">RDF<-a>, and <a href=.html?lang=en"@atom">Atom</a>.', array('@rss' => 'http://cyber.law.harvard.edu/rss/', '@rdf' => 'http://www.w3.org/RDF/', '@atom' => 'http://www.atomenabled.org')) . '</p>';
      $output .= '<p>' . t('Current feeds are listed below, and <a href="drupal_7-modules-aggregator-aggregator-module-function-aggregator_help-@addfeed">new feeds may be added<-a>- For each feed or feed category, the <em>latest items<-em> block may be enabled at the <a href=.html?lang=en"@block">blocks administration page</a>.', array('@addfeed' => url('admin/config/services/aggregator/add/feed'), '@block' => url('admin/structure/block'))) . '</p>';
      return $output;
    case 'admin/config/services/aggregator/add/feed':
      return '<p>' . t('Add a feed in RSS, RDF or Atom format. A feed may only have one entry.') . '</p>';
    case 'admin/config/services/aggregator/add/category':
      return '<p>' . t('Categories allow feed items from different feeds to be grouped together. For example, several sport-related feeds may belong to a category named <em>Sports</em>. Feed items may be grouped automatically (by selecting a category when creating or editing a feed) or manually (via the <em>Categorize</em> page available from feed item listings). Each category provides its own feed page and block.') . '</p>';
    case 'admin/config/services/aggregator/add/opml':
      return '<p>' . t('<acronym title="Outline Processor Markup Language">OPML</acronym> is an XML format used to exchange multiple feeds between aggregators. A single OPML document may contain a collection of many feeds. Drupal can parse such a file and import all feeds at once, saving you the effort of adding them manually. You may either upload a local file from your computer or enter a URL where Drupal can download it.') . '</p>';
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.module/function/aggregator_help/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部