function theme_aggregator_categorize_items

7.x theme_aggregator_categorize_items($variables)
6.x theme_aggregator_categorize_items($form)

Returns HTML for the aggregator page list form for assigning categories.


$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

1 string reference to the theme hook from theme_aggregator_categorize_items()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_theme in drupal/modules/aggregator/aggregator.module
Implements hook_theme().


drupal/modules/aggregator/, line 282
User page callbacks for the Aggregator module.


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(
          '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));