This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[WISH] Hookable methods on/for modules
#1
[WISH] Hookable methods on/for modules
It is possible to integrate an hookable system to modify some code-parts without touching core-files or firmly integrated/shipped modules?

Here a special example:
I wan't to modify the packages module by an third-party module. The third-party module offers some special webspace functions but which should be provided with a limit (depending on the selected package).

The operator/admin should be able to change the values for this.

The problem is, that all modules offer no variable possibilities to make further changes. You are forced to modify/update the "core-module" (or a copy) to make changes here. Otherwise you only restricted with database changes. If the "core-module" will be updated by the system, all changes will be lost.

More in detail:
I've written an Let's Encrypt module. The operator/admin should be able to define in the hosting-packages, how much SSL certificates or Wildcard certificates can be created/used for the user.

Here the hook system would be used.

Maybe some have already worked with Wordpress. Here are actions and filters defined to modify various things. In this way, I would imagine the whole thing for Sentora and i hope that a similar process might be implemented in the near future.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Adding views in modules Me.B 4 13 ,078 02-24-2016, 07:35 AM
Last Post: Me.B
Reminder for modules devs Me.B 0 10 ,534 02-20-2016, 09:42 PM
Last Post: Me.B
Update repos and modules list iTpain 1 6 ,622 02-05-2015, 01:58 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)