Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soft_length_limit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
soft_length_limit
Commits
83042899
Commit
83042899
authored
11 years ago
by
Esben von Buchwald
Browse files
Options
Downloads
Patches
Plain Diff
Added comments for some field form hooks.
parent
76485b55
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
soft_length_limit.module
+4
-0
4 additions, 0 deletions
soft_length_limit.module
with
4 additions
and
0 deletions
soft_length_limit.module
+
4
−
0
View file @
83042899
...
...
@@ -44,6 +44,8 @@ function _soft_length_limit_types($usage) {
/**
* Implements hook_form_FORM_ID_alter().
*
* Adds the soft length limit input field to the field configuration page.
*/
function
soft_length_limit_form_field_ui_field_edit_form_alter
(
&
$form
,
&
$form_state
)
{
$types
=
_soft_length_limit_types
(
'fields'
);
...
...
@@ -61,6 +63,8 @@ function soft_length_limit_form_field_ui_field_edit_form_alter(&$form, &$form_st
/**
* Implements hook_field_attach_form().
*
* Adds the soft length limit counter elements to the relevant fields.
*/
function
soft_length_limit_field_attach_form
(
$entity_type
,
$entity
,
&
$form
,
&
$form_state
,
$langcode
)
{
$entity_types
=
_soft_length_limit_types
(
'entity_types'
);
...
...
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