JFormHelper::addPath

Method to add a path to the list of include paths for one of the form's entities.

Currently supported entities: field, rule and form. You are free to support your own in a subclass.