summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install107
1 files changed, 0 insertions, 107 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 8bd1dcce8..0558bd426 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -417,113 +417,6 @@ function system_install() {
))
->execute();
- // Add text formats.
- $filtered_html_format = db_insert('filter_format')
- ->fields(array(
- 'name' => 'Filtered HTML',
- 'cache' => 1,
- 'weight' => 0,
- ))
- ->execute();
- $full_html_format = db_insert('filter_format')
- ->fields(array(
- 'name' => 'Full HTML',
- 'cache' => 1,
- 'weight' => 0,
- ))
- ->execute();
- $plain_text_format = db_insert('filter_format')
- ->fields(array(
- 'name' => 'Plain text',
- 'cache' => 1,
- 'weight' => 1,
- ))
- ->execute();
-
- // Enable filters for each text format.
-
- // Filtered HTML:
- db_insert('filter')
- ->fields(array('format', 'module', 'name', 'weight', 'status'))
- // URL filter.
- ->values(array(
- 'format' => $filtered_html_format,
- 'module' => 'filter',
- 'name' => 'filter_url',
- 'weight' => 0,
- 'status' => 1,
- ))
- // HTML filter.
- ->values(array(
- 'format' => $filtered_html_format,
- 'module' => 'filter',
- 'name' => 'filter_html',
- 'weight' => 1,
- 'status' => 1,
- ))
- // Line break filter.
- ->values(array(
- 'format' => $filtered_html_format,
- 'module' => 'filter',
- 'name' => 'filter_autop',
- 'weight' => 2,
- 'status' => 1,
- ))
- // HTML corrector filter.
- ->values(array(
- 'format' => $filtered_html_format,
- 'module' => 'filter',
- 'name' => 'filter_htmlcorrector',
- 'weight' => 10,
- 'status' => 1,
- ))
- // Full HTML:
- // URL filter.
- ->values(array(
- 'format' => $full_html_format,
- 'module' => 'filter',
- 'name' => 'filter_url',
- 'weight' => 0,
- 'status' => 1,
- ))
- // Line break filter.
- ->values(array(
- 'format' => $full_html_format,
- 'module' => 'filter',
- 'name' => 'filter_autop',
- 'weight' => 1,
- 'status' => 1,
- ))
- // HTML corrector filter.
- ->values(array(
- 'format' => $full_html_format,
- 'module' => 'filter',
- 'name' => 'filter_htmlcorrector',
- 'weight' => 10,
- 'status' => 1,
- ))
- // Plain text:
- // Escape all HTML.
- ->values(array(
- 'format' => $plain_text_format,
- 'module' => 'filter',
- 'name' => 'filter_html_escape',
- 'weight' => 0,
- 'status' => 1,
- ))
- // Line break filter.
- ->values(array(
- 'format' => $plain_text_format,
- 'module' => 'filter',
- 'name' => 'filter_autop',
- 'weight' => 1,
- 'status' => 1,
- ))
- ->execute();
-
- // Set the fallback format to plain text.
- variable_set('filter_fallback_format', $plain_text_format);
-
$cron_key = md5(mt_rand());
variable_set('cron_key', $cron_key);