function template_preprocess_aggregator_summary_item
template_preprocess_aggregator_summary_item(&$variables)
Processes variables for aggregator-summary-item.tpl.php.
See also
aggregator-summary-item.tpl.php
File
- modules/aggregator/aggregator.pages.inc, line 537
- User page callbacks for the Aggregator module.
Code
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(REQUEST_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); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.pages.inc/function/template_preprocess_aggregator_summary_item/7.x