theme_aggregator_categorize_items

Versions
6
theme_aggregator_categorize_items($form)
7
theme_aggregator_categorize_items($variables)

Theme the page list form for assigning categories.

ingroup themeable

Parameters

$variables An associative array containing:

  • form: An associative array containing the structure of the form.

Return value

The output HTML.

Code

modules/aggregator/aggregator.pages.inc, line 239

<?php
function theme_aggregator_categorize_items($variables) {
  $form = $variables['form'];

  $output = drupal_render($form['feed_source']);
  $rows = array();
  if (!empty($form['items'])) {
    foreach (element_children($form['items']) as $key) {
      $rows[] = array(
        drupal_render($form['items'][$key]),
        array('data' => drupal_render($form['categories'][$key]), 'class' => array('categorize-item')),
      );
    }
  }
  $output .= theme('table', array('header' => array('', t('Categorize')), 'rows' => $rows));
  $output .= drupal_render($form['submit']);
  $output .= drupal_render_children($form);

  return theme('aggregator_wrapper', array('content' => $output));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.