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 /profiles/expert/expert.install | |
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 'profiles/expert/expert.install')
-rw-r--r-- | profiles/expert/expert.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/profiles/expert/expert.install b/profiles/expert/expert.install index 6682016dc..f6cb00ac8 100644 --- a/profiles/expert/expert.install +++ b/profiles/expert/expert.install @@ -7,6 +7,28 @@ * Perform actions to set up the site for this profile. */ function expert_install() { + // Add text formats. + $plain_text_format = array( + 'name' => 'Plain text', + 'weight' => 10, + 'filters' => array( + // Escape all HTML. + 'filter_html_escape' => array( + 'weight' => 0, + 'status' => 1, + ), + // Line break filter. + 'filter_autop' => array( + 'weight' => 1, + 'status' => 1, + ), + ), + ); + $plain_text_format = (object) $plain_text_format; + filter_format_save($plain_text_format); + + // Set the fallback format to plain text. + variable_set('filter_fallback_format', $plain_text_format->format); // Enable some standard blocks. $values = array( |