function theme_aggregator_block_item in Drupal 5
Same name and namespace in other branches
- 4 modules/aggregator.module \theme_aggregator_block_item()
- 6 modules/aggregator/aggregator.module \theme_aggregator_block_item()
- 7 modules/aggregator/aggregator.module \theme_aggregator_block_item()
Format an individual feed item for display in the block.
Related topics
1 theme call to theme_aggregator_block_item()
- aggregator_block in modules/
aggregator/ aggregator.module - Implementation of hook_block().
File
- modules/
aggregator/ aggregator.module, line 1341 - Used to aggregate syndicated content (RSS, RDF, and Atom).
Code
function theme_aggregator_block_item($item, $feed = 0) {
global $user;
if ($user->uid && module_exists('blog') && user_access('edit own blog')) {
if ($image = theme('image', 'misc/blog.png', t('blog it'), t('blog it'))) {
$output .= '<div class="icon">' . l($image, 'node/add/blog', array(
'title' => t('Comment on this news item in your personal blog.'),
'class' => 'blog-it',
), "iid={$item->iid}", NULL, FALSE, TRUE) . '</div>';
}
}
// Display the external link to the item.
$output .= '<a href="' . check_url($item->link) . '">' . check_plain($item->title) . "</a>\n";
return $output;
}