From 41e39b1641c7e85d255a8ebf4592c276a7a3951c Mon Sep 17 00:00:00 2001
From: sandipt27 <sandipt27@2804167.no-reply.drupal.org>
Date: Fri, 5 Aug 2016 11:54:48 +0530
Subject: [PATCH] Issue #2779379 by sandip27: Fixed t() function missing in
 .install file

---
 modules/color/color.install | 2 +-
 modules/color/color.test    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/color/color.install b/modules/color/color.install
index 3a9aea3..fefe907 100644
--- a/modules/color/color.install
+++ b/modules/color/color.install
@@ -55,7 +55,7 @@ function color_update_7001() {
     $palette = variable_get($name, array());
     foreach ($palette as $key => $color) {
       if (!preg_match('/^#([a-f0-9]{3}){1,2}$/iD', $color)) {
-        drupal_set_message('Some of the custom CSS color codes specified via the color module are invalid. Please examine the themes which are making use of the color module at the <a href="'. url('admin/appearance/settings') .'">Appearance settings</a> page to verify their CSS color values.', 'warning');
+        drupal_set_message(t("Some of the custom CSS color codes specified via the color module are invalid. Please examine the themes which are making use of the color module at the @url page to verify their CSS color values.", array('@url' => l(t('Appearance settings'), "admin/appearance/settings"))), 'warning');
       }
     }
   }
diff --git a/modules/color/color.test b/modules/color/color.test
index 0904325..f29c0c2 100644
--- a/modules/color/color.test
+++ b/modules/color/color.test
@@ -122,7 +122,7 @@ class ColorTestCase extends DrupalWebTestCase {
       $edit['palette[bg]'] = $color;
       $this->drupalPost($settings_path, $edit, t('Save configuration'));
 
-      if($is_valid) {
+      if ($is_valid) {
         $this->assertText('The configuration options have been saved.');
       }
       else {
-- 
1.9.1

