Re: [webmin-devel] questions about module configuration
"Jamie Cameron" <[email protected]> Mon, 14 Apr 2014 15:43:17 -0700 (PDT)
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
On 14/Apr/2014 13:26 marty leisner <[email protected]> wrote .. > On Sun, Apr 13, 2014 at 6:59 PM, Jamie Cameron <[email protected]> wrote: > > > On 12/Apr/2014 12:34 marty leisner <[email protected]> wrote .. > > > > > 3) Is there a way to hook a function after the module editor is > > "completed" > > > so "something knows" > > > editing has taken place (before the actions on the module are run?) > > > > > > Any examples which accomplish this (possibly in alternate ways) would be > > > appreciated. > > > > > > I'm thinking of having the "editor" as a webmin action so I can control > > it. > > > > I'm not quite sure what you mean here, sorry. > > > > - Jamie > > > > > Thanks for all the help... > > Is there a way to run a function after the editing has been completed? > > (i.e. if we have to "do certain things" before displaying the webmin module > controls)? Yes, in your module's config_info.pl file you can define a function called config_post_save that will be called after the config is saved. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel