template_preprocess_aggregator_summary_item
modules/aggregator/aggregator.pages.inc, строка 452
- Версии
- 6
template_preprocess_aggregator_summary_item(&$variables)
Process variables for aggregator-summary-item.tpl.php.
See also
aggregator-summary-item.tpl.php
Код
<?php
function template_preprocess_aggregator_summary_item(&$variables) {
$item = $variables['item'];
$variables['feed_url'] = check_url($item->link);
$variables['feed_title'] = check_plain($item->title);
$variables['feed_age'] = t('%age old', array('%age' => format_interval(time() - $item->timestamp)));
$variables['source_url'] = '';
$variables['source_title'] = '';
if (!empty($item->feed_link)) {
$variables['source_url'] = check_url($item->feed_link);
$variables['source_title'] = check_plain($item->feed_title);
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии