Module does NOT prevent term deletion

Created on 10 June 2023, over 1 year ago

The module title "Prevent Term Delete" suggests that selected vocabularies will have their referenced terms undeletable, to avoid references to be broken.

This is in fact not the case at all: this module only conditionnaly hides the "delete" button on the term form, but does not perfom any delection check. Even with this module enabled and vocabulaires selected, their terms would be just normally deteled (eg: in a term view using VBO, or by any module having term deletion processes in code using $term->delete()).

This deletion prevention could however be mainly implemented using hook_entity_access().

So far, this module is only an UI module.

So please, update the module either way:

  1. by implemented actual term deletion check
  2. in the meantime or if you do not plan to implement an actual term deletion check, update module name and/or description to have this limitation clear to the community

Many thanks.

📌 Task
Status

Active

Component

Documentation

Created by

🇫🇷France pmunch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024