Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Flat taxonomy

3,034 sites Security covered
View on drupal.org

This module provides an option to create flat taxonomies, preventing the creation of nested terms. It achieves this by altering term creation and overview forms to disallow parent selection.

This is a very basic module which provide a new option in vocabulary creation/edition form to enforce it to be flat.
As a developer, I faced some situation where the vocabulary was supposed to be flat and development have been done based on that assumption. Later, a contributor creates a new term using the parent field (hierarchical vocabulary). It causes issue on the front-end or at least it is confusing for the contributor.
This module should avoid the situation by removing the possibility to create nested terms.

  • Alter the term creation/edition for to be sure it is impossible to select a parent.
  • Alter the term overview page to be sure it is impossible to create a nested vocabulary.

The Drupal 7 version of the module has some additional features:

  • Drush integration to flatten a vocabulary
  • Confirmation step on vocabulary edition form if the form is flagged to be flatten but contains nested terms.

Any new feature to be added to the module is welcomed ;-)

Activity

Total releases
3
First release
May 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.2 Stable Aug 29, 2025
2.0.x-dev Dev Aug 29, 2025
2.0.1 Stable May 15, 2025