Processes variables for aggregator-summary-item.tpl.php.
aggregator-summary-item.tpl.php
function template_preprocess_aggregator_summary_item(&$variables) {
$item = $variables['item'];
$variables['item_url'] = l(check_plain($item->title), check_url(url($item->link, array(
'absolute' => TRUE,
))), array(
'attributes' => array(
'class' => array(
'feed-item-url',
),
),
));
$variables['item_age'] = theme('datetime', array(
'attributes' => array(
'datetime' => format_date($item->timestamp, 'html_datetime', '', 'UTC'),
'class' => array(
'feed-item-age',
),
),
'text' => t('%age old', array(
'%age' => format_interval(REQUEST_TIME - $item->timestamp),
)),
'html' => TRUE,
));
}