Skip to content
Snippets Groups Projects
Commit 9099676f authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1248712: Show an empty row result and hide the Save button if no importers are available.

parent 93d5dc83
No related branches found
No related tags found
No related merge requests found
......@@ -683,11 +683,18 @@ function theme_feeds_ui_overview_form($variables) {
}
}
}
$output = '';
if (count($rows)) {
$output .= theme('table', array('header' => $form['#header'], 'rows' => $rows, 'attributes' => array('class' => array('feeds-admin-importers'))));
$output = theme('table', array(
'header' => $form['#header'],
'rows' => $rows,
'attributes' => array('class' => array('feeds-admin-importers')),
'empty' => t('No importers available.'),
));
if (!empty($rows)) {
$output .= drupal_render_children($form);
}
$output .= drupal_render_children($form);
return $output;
}
......
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