- Patch #1097972 by boombatower: Fixed hook_field_extra_fields_display_alter() incorrect example code.

8.0.x
Dries Buytaert 2011-03-27 09:44:50 -04:00
parent d34e4a7d19
commit 2edad6ef14
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}