theme_aggregator_block_item

  1. drupal
    1. 4.7
    2. 5 aggregator.module
    3. 6 aggregator.module
    4. 7 aggregator.module
Versions
4.7 – 6 theme_aggregator_block_item($item, $feed = 0)
7 theme_aggregator_block_item($variables)

Format an individual feed item for display in the block.

Related topics

Code

modules/aggregator.module, line 1316

<?php
function theme_aggregator_block_item($item, $feed = 0) {
  global $user;

  if ($user->uid && module_exist('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;
}
?>