Index: modules/block/block.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block.install,v
retrieving revision 1.11
diff -u -p -r1.11 block.install
--- modules/block/block.install	15 May 2008 21:30:02 -0000	1.11
+++ modules/block/block.install	5 Sep 2008 12:57:22 -0000
@@ -153,7 +153,7 @@ function block_schema() {
         'size' => 'small',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t("Block body's {filter_formats}.format; for example, 1 = Filtered HTML."),
+        'description' => t("Block body's {filter_formats}.format; for example, 1 = Restricted HTML."),
       )
     ),
     'unique keys' => array(
Index: modules/filter/filter.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.install,v
retrieving revision 1.9
diff -u -p -r1.9 filter.install
--- modules/filter/filter.install	14 Apr 2008 17:48:37 -0000	1.9
+++ modules/filter/filter.install	5 Sep 2008 12:57:22 -0000
@@ -6,7 +6,7 @@
  */
 function filter_schema() {
   $schema['filters'] = array(
-    'description' => t('Table that maps filters (HTML corrector) to input formats (Filtered HTML).'),
+    'description' => t('Table that maps filters (HTML corrector) to input formats (Restricted HTML).'),
     'fields' => array(
       'fid' => array(
         'type' => 'serial',
@@ -50,7 +50,7 @@ function filter_schema() {
     ),
   );
   $schema['filter_formats'] = array(
-    'description' => t('Stores input formats: custom groupings of filters, such as Filtered HTML.'),
+    'description' => t('Stores input formats: custom groupings of filters, such as Restricted HTML.'),
     'fields' => array(
       'format' => array(
         'type' => 'serial',
@@ -62,7 +62,7 @@ function filter_schema() {
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Name of the input format (Filtered HTML).'),
+        'description' => t('Name of the input format (Restricted HTML).'),
       ),
       'roles' => array(
         'type' => 'varchar',
Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.224
diff -u -p -r1.224 filter.module
--- modules/filter/filter.module	5 Sep 2008 09:25:52 -0000	1.224
+++ modules/filter/filter.module	5 Sep 2008 12:57:22 -0000
@@ -20,7 +20,7 @@ define('FILTER_FORMAT_DEFAULT', 0);
 function filter_help($path, $arg) {
   switch ($path) {
     case 'admin/help#filter':
-      $output = '<p>' . t("The filter module allows administrators to configure text input formats for use on your site. An input format defines the HTML tags, codes, and other input allowed in both content and comments, and is a key feature in guarding against potentially damaging input from malicious users. Two input formats included by default are <em>Filtered HTML</em> (which allows only an administrator-approved subset of HTML tags) and <em>Full HTML</em> (which allows the full set of HTML tags). Additional input formats may be created by an administrator.") . '</p>';
+      $output = '<p>' . t("The filter module allows administrators to configure text input formats for use on your site. An input format defines the HTML tags, codes, and other input allowed in both content and comments, and is a key feature in guarding against potentially damaging input from malicious users. Two input formats included by default are <em>Restricted HTML</em> (which allows only an administrator-approved subset of HTML tags) and <em>Unrestricted HTML</em> (which allows the full set of HTML tags). Additional input formats may be created by an administrator.") . '</p>';
       $output .= '<p>' . t('Each input format uses filters to manipulate text, and most input formats apply several different filters to text in a specific order. Each filter is designed for a specific purpose, and generally either adds, removes or transforms elements within user-entered text before it is displayed. A filter does not change the actual content of a post, but instead, modifies it temporarily before it is displayed. A filter may remove unapproved HTML tags, for instance, while another automatically adds HTML to make links referenced in text clickable.') . '</p>';
       $output .= '<p>' . t('Users with access to more than one input format can use the <em>Input format</em> fieldset to choose between available input formats when creating or editing multi-line content. Administrators determine the input formats available to each user role, select a default input format, and control the order of formats listed in the <em>Input format</em> fieldset.') . '</p>';
       $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@filter">Filter module</a>.', array('@filter' => 'http://drupal.org/handbook/modules/filter/')) . '</p>';
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.262
diff -u -p -r1.262 system.install
--- modules/system/system.install	30 Aug 2008 10:03:57 -0000	1.262
+++ modules/system/system.install	5 Sep 2008 12:57:23 -0000
@@ -400,12 +400,12 @@ function system_install() {
   db_query("INSERT INTO {node_access} (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (%d, %d, '%s', %d, %d, %d)", 0, 0, 'all', 1, 0, 0);
 
   // Add input formats.
-  db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Filtered HTML', ',1,2,', 1);
-  db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Full HTML', '', 1);
+  db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Restricted HTML', ',1,2,', 1);
+  db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('%s', '%s', %d)", 'Unrestricted HTML', '', 1);
 
   // Enable filters for each input format.
 
-  // Filtered HTML:
+  // Restricted HTML:
   // URL filter.
   db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 2, 0);
   // HTML filter.
@@ -415,7 +415,7 @@ function system_install() {
   // HTML corrector filter.
   db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 1, 'filter', 3, 10);
 
-  // Full HTML:
+  // Unrestricted HTML:
   // URL filter.
   db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 2, 0);
   // Line break filter.
@@ -423,8 +423,6 @@ function system_install() {
   // HTML corrector filter.
   db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 3, 10);
 
-  db_query("INSERT INTO {variable} (name, value) VALUES ('%s','%s')", 'filter_html_1', 'i:1;');
-
   db_query("INSERT INTO {variable} (name, value) VALUES ('%s', '%s')", 'node_options_forum', 'a:1:{i:0;s:6:"status";}');
 
   $cron_key = serialize(md5(mt_rand()));
@@ -3049,6 +3047,19 @@ function system_update_7010() {
 }
 
 /**
+ * Rename input formats to reflect their purpose.
+ */
+function system_update_7005() {
+  $ret = array();
+  
+  // Rename default input formats only if they have not been customized.
+  $ret[] = update_sql("UPDATE {filter_formats} SET name = 'Restricted HTML' WHERE format = 1 AND name = 'Filtered HTML'");
+  $ret[] = update_sql("UPDATE {filter_formats} SET name = 'Unrestricted HTML' WHERE format = 2 AND name = 'Full HTML'");
+  
+  return $ret;
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
  */
