From da781d37146d90e7b50f833dd2d7bfb8a62a854a Mon Sep 17 00:00:00 2001
From: djg_tram <djg@tramontana.co.hu>
Date: Wed, 23 Nov 2011 23:12:58 +0100
Subject: [PATCH] CKEditor settings appear on all user profile edit pages

The patch limits the settings to the main account page only.
---
 ckeditor.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ckeditor.module b/ckeditor.module
index 95a987e..e8e8e32 100644
--- a/ckeditor.module
+++ b/ckeditor.module
@@ -196,7 +196,7 @@ function ckeditor_init() {
  */
 function ckeditor_form_alter(&$form, $form_state, $form_id) {
     module_load_include('inc', 'ckeditor', 'includes/ckeditor.user');
-    if ( $form_id == 'user_profile_form') {
+    if ($form_id == 'user_profile_form' && $form['#user_category'] == 'account') {
         ckeditor_user_customize($form, $form_state, $form_id);
     }
 }
-- 
1.7.6.msysgit.0

