[webmin-devel] Function to return the name of the current module

David Harrison <[email protected]> Wed, 19 May 2010 09:00:11 +1200
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
Hi,
Is there a built-in Webmin function that returns the internal name of the
active module?
e.g. "mysql" if the user is using the MySQL module.

This information would seem to be available via $ENV{SCRIPT_NAME}, but I'm
sure there's an easier way of getting it.
(Plus I am not sure how $ENV{SCRIPT_NAME} behaves if Webmin is in a
subdirectory)

Background:
In my theme I want to include a <body class="$modulename"> tag so that I can
better target CSS rules.
e.g. body.mysql form.ui_form { }


Regards,


David

------------------------------------------------------------------------------

-
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