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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
a50bddad
Commit
a50bddad
authored
12 years ago
by
Yannick
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1741242
by yannickoo: Replace _dummy view mode with _custom.
parent
863b3463
Loading
Loading
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Views/field/Plugin/views/field/Field.php
+4
-4
4 additions, 4 deletions
lib/Views/field/Plugin/views/field/Field.php
with
4 additions
and
4 deletions
lib/Views/field/Plugin/views/field/Field.php
+
4
−
4
View file @
a50bddad
...
...
@@ -434,10 +434,10 @@ function options_form(&$form, &$form_state) {
// Provide an instance array for hook_field_formatter_settings_form().
// @todo Remove this: http://drupal.org/node/1741128.
ctools_include
(
'fields'
);
$instance
=
ctools_fields_fake_field_instance
(
$this
->
definition
[
'field_name'
],
'_
dummy
'
,
$formatter
,
$settings
);
$instance
=
ctools_fields_fake_field_instance
(
$this
->
definition
[
'field_name'
],
'_
custom
'
,
$formatter
,
$settings
);
// Store the settings in a '_
dummy
' view mode.
$instance
[
'display'
][
'_
dummy
'
]
=
array
(
// Store the settings in a '_
custom
' view mode.
$instance
[
'display'
][
'_
custom
'
]
=
array
(
'type'
=>
$format
,
'settings'
=>
$settings
,
);
...
...
@@ -446,7 +446,7 @@ function options_form(&$form, &$form_state) {
$settings_form
=
array
(
'#value'
=>
array
());
$function
=
$formatter
[
'module'
]
.
'_field_formatter_settings_form'
;
if
(
function_exists
(
$function
))
{
$settings_form
=
$function
(
$field
,
$instance
,
'_
dummy
'
,
$form
,
$form_state
);
$settings_form
=
$function
(
$field
,
$instance
,
'_
custom
'
,
$form
,
$form_state
);
}
$form
[
'settings'
]
=
$settings_form
;
}
...
...
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