Index: modules/block/block.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block.install,v
retrieving revision 1.9
diff -u -p -r1.9 block.install
--- modules/block/block.install 15 Mar 2008 12:31:28 -0000  1.9
+++ modules/block/block.install 10 Apr 2008 17:22:17 -0000
@@ -160,7 +160,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.7
diff -u -p -r1.7 filter.install
--- modules/filter/filter.install 15 Mar 2008 12:31:28 -0000  1.7
+++ modules/filter/filter.install 10 Apr 2008 17:22:17 -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.207
diff -u -p -r1.207 filter.module
--- modules/filter/filter.module  13 Mar 2008 21:26:08 -0000  1.207
+++ modules/filter/filter.module  10 Apr 2008 17:22:17 -0000
@@ -20,7 +20,7 @@ define('FILTER_HTML_ESCAPE', 2);
 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>Unfiltered 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.246
diff -u -p -r1.246 system.install
--- modules/system/system.install 10 Apr 2008 10:28:23 -0000  1.246
+++ modules/system/system.install 10 Apr 2008 17:22:18 -0000
@@ -381,12 +381,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)", 'Unfiltered 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.
@@ -396,7 +396,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:
+  // Unfiltered HTML:
   // URL filter.
   db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, '%s', %d, %d)", 2, 'filter', 2, 0);
   // Line break filter.
@@ -404,8 +404,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()));
@@ -2846,6 +2844,19 @@ function system_update_7004(&$sandbox) {
 }
 
 /**
+ * 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 = 'Unfiltered 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.
  */
