You are here

function theme_aggregator_summary_item in Drupal 5

Same name and namespace in other branches
  1. 4 modules/aggregator.module \theme_aggregator_summary_item()

Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".

Parameters

$item The item object from the aggregator module.:

Return value

A string containing the output.

Related topics

2 theme calls to theme_aggregator_summary_item()
aggregator_page_categories in modules/aggregator/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_sources in modules/aggregator/aggregator.module
Menu callback; displays all the feeds used by the aggregator.

File

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

Code

function theme_aggregator_summary_item($item) {
  $output = '<a href="' . check_url($item->link) . '">' . check_plain($item->title) . '</a> <span class="age">' . t('%age old', array(
    '%age' => format_interval(time() - $item->timestamp),
  )) . '</span>';
  if ($item->feed_link) {
    $output .= ', <span class="source"><a href="' . check_url($item->feed_link) . '">' . check_plain($item->feed_title) . '</a></span>';
  }
  return $output . "\n";
}