Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
310
Merge Requests
310
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
7d818b26
Commit
7d818b26
authored
Aug 24, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#557056
by sign: Removed the fieldset around summary and body fields.
parent
61dd88e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
modules/field/modules/text/text.module
modules/field/modules/text/text.module
+1
-23
No files found.
modules/field/modules/text/text.module
View file @
7d818b26
...
...
@@ -14,9 +14,6 @@ function text_theme() {
'text_textarea'
=>
array
(
'arguments'
=>
array
(
'element'
=>
NULL
),
),
'text_textarea_with_summary'
=>
array
(
'arguments'
=>
array
(
'element'
=>
NULL
),
),
'text_textfield'
=>
array
(
'arguments'
=>
array
(
'element'
=>
NULL
),
),
...
...
@@ -567,7 +564,7 @@ function text_elements() {
'#input'
=>
TRUE
,
'#columns'
=>
array
(
'value'
,
'format'
,
'summary'
),
'#delta'
=>
0
,
'#process'
=>
array
(
'text_textarea_with_summary_process'
),
'#theme_wrappers'
=>
array
(
'text_textarea
_with_summary
'
),
'#theme_wrappers'
=>
array
(
'text_textarea'
),
'#filter_value'
=>
FILTER_FORMAT_DEFAULT
,
),
);
...
...
@@ -794,22 +791,3 @@ function theme_text_textfield($element) {
function
theme_text_textarea
(
$element
)
{
return
$element
[
'#children'
];
}
function
theme_text_textarea_with_summary
(
$element
)
{
// If displaying both a textarea and a summary field, wrap them
// in a fieldset to make it clear they belong together.
$field_key
=
$element
[
'#columns'
][
1
];
if
(
!
empty
(
$element
[
$field_key
][
'#display'
]))
{
$fieldset
=
array
(
'#title'
=>
$element
[
'#title'
],
'#value'
=>
$element
[
'#children'
],
'#attributes'
=>
array
(
'class'
=>
array
(
'text-textarea'
)),
'#id'
=>
str_replace
(
'_'
,
'-'
,
$element
[
'#field_name'
])
.
'-summary-wrapper'
,
);
return
theme
(
'fieldset'
,
$fieldset
);
}
else
{
return
$element
[
'#children'
];
}
}
Write
Preview
Markdown
is supported
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