The module allows administrators to limit max term depth per vocabulary.

It adds a "Max ancestor depth" option to the vocabulary form. The limit is added to the vocabulary config as a third-party setting. It affects the term overview form (table drag limit + validation) and the term creation/edit form (validation only). The module allows to completely disable the hierarchy on a vocabulary as well.

The module provides services for max depth reading/writing from/to the vocabulary, as well as a service that helps with ancestor depth checking. This may be useful for third-party modules that implement customized term tree UI.

TODO (patches are welcome):

  • Validate existing terms when changing the vocabulary limit.

Project information

Releases