1
macklein
Get module config in admin
  • 2007/2/19 13:54

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


Hello everybody, can someone tell me please how to get the module config in the admin pages, $xoopsModuleConfig is not available in admin, and i want to get the current module config , considering that i don't know the current module's dir name....

2
stefan88
Re: Get module config in admin
  • 2007/2/19 15:05

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


in your admin page:

global $xoopsModuleConfig;
...
$xoopsModuleConfig['CONFIG_OPTION_NAME']

where CONFIG_OPTION_NAME is the option name defined in xoops_version.php

$modversion['config'][X]['name'] = 'CONFIG_OPTION_NAME'

..

Login

Who's Online

451 user(s) are online (324 user(s) are browsing Support Forums)


Members: 0


Guests: 451


more...

Donat-O-Meter

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

Latest GitHub Commits