Skip to content
Snippets Groups Projects
Commit ca4162c8 authored by Alex Barth's avatar Alex Barth
Browse files

Convert use of theme('table').

parent 982c5c28
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ function feeds_page() { ...@@ -37,7 +37,7 @@ function feeds_page() {
t('Import'), t('Import'),
t('Description'), t('Description'),
); );
return theme('table', $header, $rows); return theme('table', array('header' => $header, 'rows' => $rows));
} }
/** /**
......
...@@ -796,7 +796,7 @@ function theme_feeds_ui_mapping_form($form) { ...@@ -796,7 +796,7 @@ function theme_feeds_ui_mapping_form($form) {
drupal_render($form['add']), drupal_render($form['add']),
); );
$output = '<div class="help feeds-admin-ui""'. drupal_render($form['help']) .'</div>'; $output = '<div class="help feeds-admin-ui""'. drupal_render($form['help']) .'</div>';
$output .= theme('table', $header, $rows); $output .= theme('table', array('header' => $header, 'rows' => $rows));
// Build the help table that explains available sources. // Build the help table that explains available sources.
$legend = ''; $legend = '';
...@@ -809,7 +809,7 @@ function theme_feeds_ui_mapping_form($form) { ...@@ -809,7 +809,7 @@ function theme_feeds_ui_mapping_form($form) {
} }
if (count($rows)) { if (count($rows)) {
$legend .= '<h4>'. t('Sources') .'</h4>'; $legend .= '<h4>'. t('Sources') .'</h4>';
$legend .= theme('table', array(t('Name'), t('Description')), $rows); $legend .= theme('table', array('header' => array(t('Name'), t('Description')), 'rows' => $rows));
} }
// Build the help table that explains available targets. // Build the help table that explains available targets.
...@@ -821,7 +821,7 @@ function theme_feeds_ui_mapping_form($form) { ...@@ -821,7 +821,7 @@ function theme_feeds_ui_mapping_form($form) {
); );
} }
$legend .= '<h4>'. t('Targets') .'</h4>'; $legend .= '<h4>'. t('Targets') .'</h4>';
$legend .= theme('table', array(t('Name'), t('Description')), $rows); $legend .= theme('table', array('header' => array(t('Name'), t('Description')), 'rows' => $rows));
// Stick tables into collapsible fieldset. // Stick tables into collapsible fieldset.
$form['legendset']['legend'] = array( $form['legendset']['legend'] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment