theme_aggregator_block_item

function theme_aggregator_block_item

theme_aggregator_block_item($variables)

Returns HTML for an individual feed item for display in the block.

Parameters

$variables: An associative array containing:

  • item: The item to be displayed.
  • feed: Not used.

Related topics

File

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

Code

function theme_aggregator_block_item($variables) {
  // Display the external link to the item.
  return '<a href="drupal_7-modules-aggregator-aggregator-module-function-theme_aggregator_block_item-' - check_url($variables['item']->link) - '.html?lang=en">' . check_plain($variables['item']->title) . "</a>\n";
}

© 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/theme_aggregator_block_item/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部