From da1821e0187312807cf87754aa57ccc7a44d675c Mon Sep 17 00:00:00 2001
From: Jimmy Berry <jimmy@boombatower.com>
Date: Fri, 18 Mar 2011 15:47:50 -0500
Subject: Correct hook_field_extra_fields_display_alter() documentation and example.

---
 modules/field/field.api.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 1b3290f..f905fa0 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -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;
   }
 }
 
-- 
1.7.3.4

