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
987f73ad
Commit
987f73ad
authored
12 years ago
by
Daniel Wehner
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1557680
by tim.plunkett, dawehner, DuaelFr: Fixed More link options not imported.
parent
a5adf1c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Drupal/views/ViewsObject.php
+12
-0
12 additions, 0 deletions
lib/Drupal/views/ViewsObject.php
plugins/views_plugin_display.inc
+4
-1
4 additions, 1 deletion
plugins/views_plugin_display.inc
with
16 additions
and
1 deletion
lib/Drupal/views/ViewsObject.php
+
12
−
0
View file @
987f73ad
...
...
@@ -51,6 +51,7 @@ class ViewsObject {
* Returns the options of this handler/plugin.
*
* @see Drupal\views\ViewsObject::export_option()
* @see Drupal\views\ViewsObject::export_option_always()
* @see Drupal\views\ViewsObject::unpack_translatable()
*/
function
option_definition
()
{
return
array
();
}
...
...
@@ -260,6 +261,17 @@ function export_option($indent, $prefix, $storage, $option, $definition, $parent
return
$output
;
}
/**
* Always exports the option, regardless of the default value.
*/
function
export_option_always
(
$indent
,
$prefix
,
$storage
,
$option
,
$definition
,
$parents
)
{
// If there is no default, the option will always be exported.
unset
(
$definition
[
'default'
]);
// Unset our export method to prevent recursion.
unset
(
$definition
[
'export'
]);
return
$this
->
export_option
(
$indent
,
$prefix
,
$storage
,
$option
,
$definition
,
$parents
);
}
/**
* Unpacks each handler to store translatable texts.
*/
...
...
This diff is collapsed.
Click to expand it.
plugins/views_plugin_display.inc
+
4
−
1
View file @
987f73ad
...
...
@@ -424,6 +424,8 @@ function defaultable_sections($section = NULL) {
'group_by'
=>
array
(
'group_by'
),
'query'
=>
array
(
'query'
),
'use_more'
=>
array
(
'use_more'
,
'use_more_always'
,
'use_more_text'
),
'use_more_always'
=>
array
(
'use_more'
,
'use_more_always'
,
'use_more_text'
),
'use_more_text'
=>
array
(
'use_more'
,
'use_more_always'
,
'use_more_text'
),
'link_display'
=>
array
(
'link_display'
,
'link_url'
),
// Force these to cascade properly.
...
...
@@ -562,7 +564,8 @@ function option_definition() {
),
'use_more_always'
=>
array
(
'default'
=>
FALSE
,
'bool'
=>
FALSE
,
'bool'
=>
TRUE
,
'export'
=>
'export_option_always'
,
),
'use_more_text'
=>
array
(
'default'
=>
'more'
,
...
...
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