_aggregator_page_list
modules/aggregator/aggregator.pages.inc, строка 113
- Версии
- 5
_aggregator_page_list(
$sql, $op,$header= '')- 6
_aggregator_page_list($items, $op, $feed_source = '')
Prints an aggregator page listing a number of feed items.
Various menu callbacks use this function to print their feeds.
Параметры
$items
The items to be listed.
$op
Which form should be added to the items. Only 'categorize'
is now recognized.
$feed_source
The feed source URL.
Возвращаемое значение
The items HTML.
Код
<?php
function _aggregator_page_list($items, $op, $feed_source = '') {
if (user_access('administer news feeds') && ($op == 'categorize')) {
// Get form data.
$output = aggregator_categorize_items($items, $feed_source);
}
else {
// Assemble themed output.
$output = $feed_source;
foreach ($items as $item) {
$output .= theme('aggregator_item', $item);
}
$output = theme('aggregator_wrapper', $output);
}
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии