X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ffield_extra_fields_display_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ffield_extra_fields_display_alter.twig;h=e78ca6766086f4dc36a0b7d8dd36d17d01cbf48e;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/field_extra_fields_display_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/field_extra_fields_display_alter.twig new file mode 100644 index 000000000..e78ca6766 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/field_extra_fields_display_alter.twig @@ -0,0 +1,8 @@ +/** + * Implements hook_field_extra_fields_display_alter(). + */ +function {{ machine_name }}_field_extra_fields_display_alter(&$displays, $context) { + if ($context['entity_type'] == 'taxonomy_term' && $context['view_mode'] == 'full') { + $displays['description']['visible'] = FALSE; + } +}