From 9099676f76583a8b97c2d21a87284e04347a9cd3 Mon Sep 17 00:00:00 2001
From: Dave Reid <dave@davereid.net>
Date: Sat, 13 Aug 2011 23:33:50 -0500
Subject: [PATCH] Issue #1248712: Show an empty row result and hide the Save
 button if no importers are available.

---
 feeds_ui/feeds_ui.admin.inc | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc
index 6a7e8bf6..fa69c2b3 100644
--- a/feeds_ui/feeds_ui.admin.inc
+++ b/feeds_ui/feeds_ui.admin.inc
@@ -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;
 }
 
-- 
GitLab