theme_aggregator_summary_item

  1. drupal
    1. 4.7 aggregator.module
    2. 5
    3. 6 theme.php
    4. 7 theme.php
Versions
4.7 – 5 theme_aggregator_summary_item($item)
6 theme_aggregator_summary_item()
7 theme_aggregator_summary_item($variables)

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

Code

modules/aggregator/aggregator.module, line 1366

<?php
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";
}
?>