summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2010-09-13 18:18:44 (GMT)
committer Earl Miles2010-09-13 18:18:44 (GMT)
commiteed49d16c3c4c649dde512f2a2cedb38de9f8bb6 (patch)
tree827f26588e9f5ce84cabba279690fa5a66171c21
parentfd150580c607eed78445c8f3e67827d2feef9152 (diff)
#898746: Use filter_fallback_format() instead of the default defined constant.
-rw-r--r--plugins/content_types/custom/custom.inc4
-rw-r--r--plugins/content_types/search/search_result.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/content_types/custom/custom.inc b/plugins/content_types/custom/custom.inc
index 5274b8d..56739c5 100644
--- a/plugins/content_types/custom/custom.inc
+++ b/plugins/content_types/custom/custom.inc
@@ -16,7 +16,7 @@
*/
$plugin = array(
'no title override' => TRUE,
- 'defaults' => array('admin_title' => '', 'title' => '', 'body' => '', 'format' => FILTER_FORMAT_DEFAULT, 'substitute' => TRUE),
+ 'defaults' => array('admin_title' => '', 'title' => '', 'body' => '', 'format' => filter_fallback_format(), 'substitute' => TRUE),
'js' => array('misc/autocomplete.js', 'misc/textarea.js', 'misc/collapse.js'),
// Make sure the edit form is only used for some subtypes.
'edit form' => '',
@@ -128,7 +128,7 @@ function ctools_custom_content_type_get_conf($subtype, $conf) {
'admin_title' => t('Missing/deleted content'),
'title' => '',
'body' => '',
- 'format' => FILTER_FORMAT_DEFAULT,
+ 'format' => filter_fallback_format(),
'substitute' => TRUE,
'custom_type' => 'fixed',
'content' => $content,
diff --git a/plugins/content_types/search/search_result.inc b/plugins/content_types/search/search_result.inc
index 4c83350..cbee212 100644
--- a/plugins/content_types/search/search_result.inc
+++ b/plugins/content_types/search/search_result.inc
@@ -19,11 +19,11 @@ if (module_exists('search')) {
'override_empty' => FALSE,
'empty_title' => '',
'empty' => '',
- 'empty_format' => FILTER_FORMAT_DEFAULT,
+ 'empty_format' => filter_fallback_format(),
'override_no_key' => FALSE,
'no_key_title' => '',
'no_key' => '',
- 'no_key_format' => FILTER_FORMAT_DEFAULT,
+ 'no_key_format' => filter_fallback_format(),
),
);
}