Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c19a04e6
Commit
c19a04e6
authored
Nov 09, 2005
by
Dries
Browse files
- Partial patch
#34920
by tangent: improved placement of filter settings.
parent
dac42f83
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/filter.module
View file @
c19a04e6
...
...
@@ -764,7 +764,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT) {
$extra
=
l
(
t
(
'More information about formatting options'
),
'filter/tips'
);
if
(
count
(
$formats
)
>
1
)
{
$form
[
'format'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Input format'
),
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
TRUE
,
'#weight'
=>
-
4
);
$form
[
'format'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Input format'
),
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
TRUE
,
'#weight'
=>
-
16
);
// Multiple formats available: display radio buttons with tips.
foreach
(
$formats
as
$format
)
{
$form
[
'format'
][
$format
->
format
]
=
array
(
'#type'
=>
'filter_format'
,
'#title'
=>
$format
->
name
,
'#default_value'
=>
$value
,
'#return_value'
=>
$format
->
format
,
'#parents'
=>
array
(
'format'
),
'#description'
=>
theme
(
'filter_tips'
,
_filter_tips
(
$format
->
format
,
false
)),
'#valid'
=>
'filter_form'
);
...
...
modules/filter/filter.module
View file @
c19a04e6
...
...
@@ -764,7 +764,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT) {
$extra
=
l
(
t
(
'More information about formatting options'
),
'filter/tips'
);
if
(
count
(
$formats
)
>
1
)
{
$form
[
'format'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Input format'
),
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
TRUE
,
'#weight'
=>
-
4
);
$form
[
'format'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Input format'
),
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
TRUE
,
'#weight'
=>
-
16
);
// Multiple formats available: display radio buttons with tips.
foreach
(
$formats
as
$format
)
{
$form
[
'format'
][
$format
->
format
]
=
array
(
'#type'
=>
'filter_format'
,
'#title'
=>
$format
->
name
,
'#default_value'
=>
$value
,
'#return_value'
=>
$format
->
format
,
'#parents'
=>
array
(
'format'
),
'#description'
=>
theme
(
'filter_tips'
,
_filter_tips
(
$format
->
format
,
false
)),
'#valid'
=>
'filter_form'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment