You are here

function hook_aggregator_parse_info in Drupal 7

Specify the title and short description of your parser.

The title and the description provided are shown within the configuration page. Use as title the human readable name of the parser and as description a brief (40 to 80 characters) explanation of the parser's functionality.

This hook is only called if your module implements hook_aggregator_parse(). If this hook is not implemented aggregator will use your module's file name as title and there will be no description.

Return value

An associative array defining a title and a description string.

See also

hook_aggregator_parse()

Related topics

1 function implements hook_aggregator_parse_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

aggregator_aggregator_parse_info in modules/aggregator/aggregator.parser.inc
Implements hook_aggregator_parse_info().
1 invocation of hook_aggregator_parse_info()
aggregator_admin_form in modules/aggregator/aggregator.admin.inc
Form constructor for the aggregator system settings.

File

modules/aggregator/aggregator.api.php, line 136
Documentation for aggregator API.

Code

function hook_aggregator_parse_info() {
  return array(
    'title' => t('Default parser'),
    'description' => t('Default parser for RSS, Atom and RDF feeds.'),
  );
}