drupal函数:hook_aggregator_fetch_info

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

版本
7
hook_aggregator_fetch_info()

实现这个钩子为了显示你所抓取的标题和简短描述.

The title and the description provided are shown on admin/content/aggregator/settings among other places. Use as title the human readable name of the fetcher and as description a brief (40 to 80 characters) explanation of the fetcher's functionality.

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

同时参考

hook_aggregator_fetch()

返回值

An associative array defining a title and a description string.

相关主题

Hooks
Allow modules to interact with the Drupal core.

代码

<?php function hook_aggregator_fetch_info() { return array( 'title' => t('Default fetcher'), 'description' => t('Default fetcher for resources available by URL.'), ); } ?>


Syndicate content