theme_aggregator_categorize_items
modules/aggregator/aggregator.pages.inc, строка 213
- Версии
- 6
theme_aggregator_categorize_items($form)
Theme the page list form for assigning categories.
ingroup themeable
Параметры
$form
Ассоциативный массив, содержащий структуру формы
Возвращаемое значение
The output HTML.
Код
<?php
function theme_aggregator_categorize_items($form) {
$output = drupal_render($form['feed_source']);
$rows = array();
if ($form['items']) {
foreach (element_children($form['items']) as $key) {
if (is_array($form['items'][$key])) {
$rows[] = array(
drupal_render($form['items'][$key]),
array('data' => drupal_render($form['categories'][$key]), 'class' => 'categorize-item'),
);
}
}
}
$output .= theme('table', array('', t('Categorize')), $rows);
$output .= drupal_render($form['submit']);
$output .= drupal_render($form);
return theme('aggregator_wrapper', $output);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии