stable

Clone or download

Read-only

request #9115: Ease creation of tracker custom fields for other plugins

Precedent implementation of hooks to let plugins write their own fields was clunky and hazardous. Plugins don't have anymore the need to provide an instance of the field, the factory is smart enough to instantiate it. Plugins need to listen to the following hooks: * Tracker_FormElementFactory::GET_CLASSNAMES * Tracker_FormElementFactory::VIEW_ADMIN_CREATE_VISITOR * Tracker_FormElement::VIEW_ADMIN_UPDATE_VISITOR Change-Id: I4fb268254d752406549c55c3c417d316dc990835

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement.class.php +17 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php +69 −45 Go to diff View file