Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fieldblock
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
fieldblock
Commits
5b9e61d7
Commit
5b9e61d7
authored
8 years ago
by
rudiedirkx
Committed by
Marc van Gend
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2442205
by rudiedirkx, ParisLiakos: Fieldblock's entity view alter should be the very last
parent
2b6834f6
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
fieldblock.module
+20
-0
20 additions, 0 deletions
fieldblock.module
with
20 additions
and
0 deletions
fieldblock.module
+
20
−
0
View file @
5b9e61d7
...
@@ -7,6 +7,26 @@
...
@@ -7,6 +7,26 @@
define
(
'FIELDBLOCK_STORAGE_STATIC'
,
'fieldblock_storage'
);
define
(
'FIELDBLOCK_STORAGE_STATIC'
,
'fieldblock_storage'
);
/**
* Implements hook_module_implements_alter().
*/
function
fieldblock_module_implements_alter
(
&
$implementations
,
$hook
)
{
// Move these hooks to the end of the execution list. Even though Fieldblock only implements
// hook_entity_view_alter, module_implements() indexes them by first-called, which is the most
// specific, so we need those too.
$view_alter_hooks
=
array
(
'entity_view_alter'
,
'node_view_alter'
,
'taxonomy_term_alter'
,
'user_view_alter'
,
);
if
(
in_array
(
$hook
,
$view_alter_hooks
)
&&
isset
(
$implementations
[
'fieldblock'
]))
{
$group
=
$implementations
[
'fieldblock'
];
unset
(
$implementations
[
'fieldblock'
]);
$implementations
[
'fieldblock'
]
=
$group
;
}
}
/**
/**
* Implements hook_form_alter().
* Implements hook_form_alter().
* Adds a column to the "display fields" table-form, with a checkbox for each
* Adds a column to the "display fields" table-form, with a checkbox for each
...
...
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