Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
6ce1ae74
Commit
6ce1ae74
authored
May 4, 2010
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#675116
by jhodgdon: documentation improvements.
parent
881be738
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/field_ui/field_ui.api.php
+17
-28
17 additions, 28 deletions
modules/field_ui/field_ui.api.php
with
17 additions
and
28 deletions
modules/field_ui/field_ui.api.php
+
17
−
28
View file @
6ce1ae74
...
...
@@ -12,11 +12,12 @@
*/
/**
*
F
ield settings form.
*
Add settings to a f
ield settings form.
*
* The field type module is responsible for not returning form elements that
* cannot be changed. It may not always be possible to tell in advance, but
* modules should attempt to inform the user what is going/likely to work.
* Invoked from field_ui_field_settings_form() to allow the module defining the
* field to add global settings (i.e. settings that do not depend on the bundle
* or instance) to the field settings form. If the field already has data, only
* include settings that are safe to change.
*
* @todo: Only the field type module knows which settings will affect the
* field's schema, but only the field storage module knows what schema
...
...
@@ -30,7 +31,8 @@
* @param $instance
* The instance structure being configured.
* @param $has_data
* Whether the field already has data.
* TRUE if the field already has data, FALSE if not.
*
* @return
* The form definition for the field settings.
*/
...
...
@@ -48,12 +50,16 @@ function hook_field_settings_form($field, $instance, $has_data) {
}
/**
* Instance settings form.
* Add settings to an instance field settings form.
*
* Invoked from field_ui_field_edit_form() to allow the module defining the
* field to add settings for a field instance.
*
* @param $field
* The field structure being configured.
* @param $instance
* The instance structure being configured.
*
* @return
* The form definition for the field instance settings.
*/
...
...
@@ -86,12 +92,16 @@ function hook_field_instance_settings_form($field, $instance) {
}
/**
* Widget settings form.
* Add settings to a widget settings form.
*
* Invoked from field_ui_field_edit_form() to allow the module defining the
* widget to add settings for a widget instance.
*
* @param $field
* The field structure being configured.
* @param $instance
* The instance structure being configured.
*
* @return
* The form definition for the widget settings.
*/
...
...
@@ -121,27 +131,6 @@ function hook_field_widget_settings_form($field, $instance) {
return
$form
;
}
/**
* Formatter settings form.
*
* @todo Not implemented yet. The signature below is only prospective, but
* providing $instance is not enough, since one $instance holds several display
* settings.
*
* @param $formatter
* The type of the formatter being configured.
* @param $settings
* The current values of the formatter settings.
* @param $field
* The field structure being configured.
* @param $instance
* The instance structure being configured.
* @return
* The form definition for the formatter settings.
*/
function
hook_field_formatter_settings_form
(
$formatter
,
$settings
,
$field
,
$instance
)
{
}
/**
* Provide information on view mode tabs for an entity type.
*
...
...
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