Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tablefield-3199886
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
tablefield-3199886
Commits
c666e49e
Commit
c666e49e
authored
14 years ago
by
Kevin Hankens
Browse files
Options
Downloads
Patches
Plain Diff
#1051096
by bojanz adding help text
parent
aa5c05b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tablefield.module
+8
-1
8 additions, 1 deletion
tablefield.module
with
8 additions
and
1 deletion
tablefield.module
+
8
−
1
View file @
c666e49e
...
...
@@ -263,9 +263,16 @@ function tablefield_field_widget_form(&$form, &$form_state, $field, $instance, $
$default_count_rows
=
isset
(
$items
[
0
][
'tablefield'
][
'rebuild'
][
'count_cols'
])
?
$items
[
0
][
'tablefield'
][
'rebuild'
][
'count_cols'
]
:
5
;
}
if
(
!
empty
(
$instance
[
'description'
]))
{
$help_text
=
$instance
[
'description'
];
}
else
{
$help_text
=
t
(
'The first row will appear as the table header. Leave the first row blank if you do not need a header.'
);
}
$element
[
'tablefield'
]
=
array
(
'#title'
=>
$element
[
'#title'
],
'#description'
=>
t
(
'The first row will appear as the table header. Leave the first row blank if you do not need a header.'
)
,
'#description'
=>
$help_text
,
'#attributes'
=>
array
(
'id'
=>
'form-tablefield-'
.
$field
[
'field_name'
]
.
'-'
.
$delta
,
'class'
=>
array
(
'form-tablefield'
)),
'#type'
=>
'fieldset'
,
'#tree'
=>
TRUE
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment