diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-03 15:33:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-03 15:33:42 +0000 |
commit | d1a2de607e23da467c1366aca04ac5f61328a37a (patch) | |
tree | cbaca2bea89c96d310b1dabbf99d5b134c809f23 /modules/system | |
parent | f43ee59e056e3d769545f90a3ab26244fb229b00 (diff) | |
download | brdo-d1a2de607e23da467c1366aca04ac5f61328a37a.tar.gz brdo-d1a2de607e23da467c1366aca04ac5f61328a37a.tar.bz2 |
- Patch #626024 by sun, catch: fixed filter_list_format() hits database too often / filter_format_save() doesn't save all filters.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 107 |
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); |