function theme_aggregator_categorize_items
7.x aggregator.pages.inc | theme_aggregator_categorize_items( |
6.x aggregator.pages.inc | theme_aggregator_categorize_items($form) |
Returns HTML for the aggregator page list form for assigning categories.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
Related topics
1 theme call to theme_aggregator_categorize_items()
- aggregator_categorize_items in drupal-7.x/
modules/ aggregator/ aggregator.pages.inc - Form constructor to build the page list form.
File
- drupal-7.x/
modules/ aggregator/ aggregator.pages.inc, line 282 - User page callbacks for the Aggregator module.
Code
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));
}