theme_aggregator_summary_item

Versions
4.6 – 5
theme_aggregator_summary_item($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

Code

modules/aggregator.module, line 1078

<?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="'. $item->feed_link .'">'. $item->feed_title .'</a></span>';
  }
  return $output ."\n";
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.