From d1a2de607e23da467c1366aca04ac5f61328a37a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 3 Dec 2009 15:33:42 +0000 Subject: - Patch #626024 by sun, catch: fixed filter_list_format() hits database too often / filter_format_save() doesn't save all filters. --- modules/system/system.install | 107 ------------------------------------------ 1 file changed, 107 deletions(-) (limited to 'modules/system/system.install') 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); -- cgit v1.2.3