function theme_aggregator_categorize_items
7.x aggregator.pages.inc | theme_aggregator_categorize_items( |
6.x aggregator.pages.inc | theme_aggregator_categorize_items($form) |
Theme the page list form for assigning categories.
Parameters
$form: An associative array containing the structure of the form.
Return value
The output HTML.
Related topics
1 theme call to theme_aggregator_categorize_items()
- aggregator_categorize_items in drupal-6.x/
modules/ aggregator/ aggregator.pages.inc - Form builder; build the page list form.
File
- drupal-6.x/
modules/ aggregator/ aggregator.pages.inc, line 213 - User page callbacks for the aggregator module.
Code
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);
}