drupal函数:hook_aggregator_process_info

modules/aggregator/aggregator.api.php, 184行

版本
7
hook_aggregator_process_info($feed)

实现这个钩子以浏览你的处理器的标题和简介.

The title and the description provided are shown most importantly on admin/content/aggregator/settings . Use as title the natural name of the processor and as description a brief (40 to 80 characters) explanation of the functionality.

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

同时参考

hook_aggregator_process()

Return value

An associative array defining a title and a description string.

相关主题

Hooks
Allow modules to interact with the Drupal core.

代码

<?php function hook_aggregator_process_info($feed) { return array( 'title' => t('Default processor'), 'description' => t('Creates lightweight records of feed items.'), ); } ?>


同步内容