summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-12 15:13:38 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-12 15:13:38 +0000
commit2b594adc542b8774709c8a79d96ffdf36fb65e81 (patch)
tree9e68cfc9198079e107748c5d1d14da322d1e9d25 /modules
parent441b63accda0538e7257eebabc9796df06630a80 (diff)
downloadbrdo-2b594adc542b8774709c8a79d96ffdf36fb65e81.tar.gz
brdo-2b594adc542b8774709c8a79d96ffdf36fb65e81.tar.bz2
Renumbering filters in filter.module.
Diffstat (limited to 'modules')
-rw-r--r--modules/filter.module8
-rw-r--r--modules/filter/filter.module8
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/filter.module b/modules/filter.module
index 6e779546b..97c0a9694 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -91,7 +91,7 @@ function filter_filter_tips($delta, $format, $long = false) {
<p>For more in-depth examples, we recommend that you check the existing Drupal code and use it as a starting point, especially for sidebar boxes.</p>');
}
- case 3:
+ case 2:
return t('Lines and paragraphs break automatically.');
break;
}
@@ -774,7 +774,7 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
function filter_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
- return array(0 => t('HTML filter'), 1 => t('PHP evaluator'), 3 => t('Line break converter'));
+ return array(0 => t('HTML filter'), 1 => t('PHP evaluator'), 2 => t('Line break converter'));
case 'no cache':
return $delta == 1; // No caching for the PHP evaluator.
@@ -785,7 +785,7 @@ function filter_filter($op, $delta = 0, $format = -1, $text = '') {
return t('Allows you to restrict if users can post HTML and which tags to filter out.');
case 1:
return t('Runs a piece of PHP code. The usage of this filter should be restricted to administrators only!');
- case 3:
+ case 2:
return t('Converts line breaks into HTML (i.e. &lt;br&gt; and &lt;p&gt; tags).');
default:
return;
@@ -797,7 +797,7 @@ function filter_filter($op, $delta = 0, $format = -1, $text = '') {
return _filter_html($text, $format);
case 1:
return drupal_eval($text);
- case 3:
+ case 2:
return _filter_autop($text);
default:
return $text;
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 6e779546b..97c0a9694 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -91,7 +91,7 @@ function filter_filter_tips($delta, $format, $long = false) {
<p>For more in-depth examples, we recommend that you check the existing Drupal code and use it as a starting point, especially for sidebar boxes.</p>');
}
- case 3:
+ case 2:
return t('Lines and paragraphs break automatically.');
break;
}
@@ -774,7 +774,7 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
function filter_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
- return array(0 => t('HTML filter'), 1 => t('PHP evaluator'), 3 => t('Line break converter'));
+ return array(0 => t('HTML filter'), 1 => t('PHP evaluator'), 2 => t('Line break converter'));
case 'no cache':
return $delta == 1; // No caching for the PHP evaluator.
@@ -785,7 +785,7 @@ function filter_filter($op, $delta = 0, $format = -1, $text = '') {
return t('Allows you to restrict if users can post HTML and which tags to filter out.');
case 1:
return t('Runs a piece of PHP code. The usage of this filter should be restricted to administrators only!');
- case 3:
+ case 2:
return t('Converts line breaks into HTML (i.e. &lt;br&gt; and &lt;p&gt; tags).');
default:
return;
@@ -797,7 +797,7 @@ function filter_filter($op, $delta = 0, $format = -1, $text = '') {
return _filter_html($text, $format);
case 1:
return drupal_eval($text);
- case 3:
+ case 2:
return _filter_autop($text);
default:
return $text;