From c3f6ad0e1846045c28ae28ab1769610554dfb13c Mon Sep 17 00:00:00 2001
From: Mikkel Hoegh <mikkel@hoegh.org>
Date: Wed, 18 Jan 2012 15:59:38 +0100
Subject: [PATCH] =?UTF-8?q?Issue=20#1409124=20by=20mikl:=20=E2=80=9CFlag=20F?=
 =?UTF-8?q?riend=20Count=E2=80=9D=20Panels=20pane=20can't=20be=20activated.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 plugins/content_types/flag_friend_count.inc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/plugins/content_types/flag_friend_count.inc b/plugins/content_types/flag_friend_count.inc
index de8059f..3184a4b 100644
--- a/plugins/content_types/flag_friend_count.inc
+++ b/plugins/content_types/flag_friend_count.inc
@@ -48,7 +48,12 @@ function flag_friend_flag_friend_count_content_type_render($subtype, $conf, $pan
  * Empty form so we can have the default override title.
  */
 function flag_friend_flag_friend_count_content_type_edit_form(&$form, &$form_state) {
-  // Does nothing!
+  $settings = ctools_custom_content_type_get_conf($form_state['subtype'], $form_state['conf']);
+  $form_state['settings'] = $settings;
+
+  if ($settings['custom_type'] == 'fixed') {
+    return $form; // no form for this case.
+  }
 }
 
 function flag_friend_flag_friend_count_content_type_edit_form_submit(&$form, &$form_state) {
-- 
1.7.5.4

