Module idea
The goal of this module is to give the admin the possibility to hide fields on any page.
Interface
The module adds a tab Hide Fields
on admin/defaultvalues.php
Each line contains
Relative URL | Field | Status |
---|---|---|
The page URL | A field name | either hidden or deleted |
Technical idea
This module implements a hook that works for all hook contexts see https://wiki.dolibarr.org/index.php?title=Syst%C3%A8me_de_Hooks#Liste_des_Hooks_disponibles_dans_Dolibarr
It checks if the page correspond to the one of a define hiden hooks in the interface above, and injects a jquery
script that either hide or delete the field