Skip to content
Snippets Groups Projects
Commit e7390c50 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1097972 by boombatower: Fixed hook_field_extra_fields_display_alter()...

Issue #1097972 by boombatower: Fixed hook_field_extra_fields_display_alter() incorrect example code.
parent f1ba363a
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
*
* Fieldable entities or modules that want to have their components supported
* should expose them using this hook. The user-defined settings (weight,
* visibility) are automatically applied on rendered forms and displayed
* visible) are automatically applied on rendered forms and displayed
* entities in a #pre_render callback added by field_attach_form() and
* field_attach_view().
*
......@@ -2204,7 +2204,7 @@ function hook_field_display_ENTITY_TYPE_alter(&$display, $context) {
*/
function hook_field_extra_fields_display_alter(&$displays, $context) {
if ($context['entity_type'] == 'taxonomy_term' && $context['view_mode'] == 'full') {
$displays['description']['visibility'] = FALSE;
$displays['description']['visible'] = FALSE;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment