1
timgno
In Configuration, (active_modules)
  • 2010/10/28 15:52

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Hi there!!!

In configuration you can extract the set of themes,
$xoopsConfig['theme_set_allowed']

why the modules do not?

idea:
$xoopsConfig['active_modules']

already exists:
$xoopsConfig['active_modulesadmin']

but does nothing.

There is already a way to extract them or it might be an idea?

timgno

2
Tarik
Re: In Configuration, (active_modules)
  • 2010/10/29 0:11

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


i dont think such thing exist
according to this you can get just the home page module $xoopsConfig['startpage']
https://xoops.org/modules/mediawiki/index.php/Dev:$xoopsConfig
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

3
ghia
Re: In Configuration, (active_modules)
  • 2010/10/29 9:07

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Activating and deactivating modules have to be done with the module manager.
If you want user groups not to use some modules, edit the view permissions in usergroups.
You can have lists of installed and active modules by using the module handlers and per user group with the permission handlers.

4
timgno
Re: In Configuration, (active_modules)
  • 2010/10/29 9:17

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I need to extract the list of modules in the block as main menu, use only the variable config (active_modules) inviting the team, if possible, to create it.
$xoopsConfig['active_modules'] => Array() // of Activated Modules

otherwise they are forced to pull out the list each time the class module, with a lot more code in the themes.

I use this list for a custom menu.

Login

Who's Online

215 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits