xoops forums

cadch

Just popping in
Posted on: 11/19 4:01
cadch
cadch (Show more)
Just popping in
Posts: 18
Since: 2007/12/17
#1

block how to get xoopsModuleConfig var

My block need to read xoopsModuleConfig var
I used xoops2.5.10
block modules/block/xxx.php
$xxx $xoopsModuleConfig['xxx']

show ERROR:Undefined variable: xoopsModuleConfig in file.
My block how to get xoopsModuleConfig var
Thanks~

Mamba

Moderator
Posted on: 11/19 6:36
Mamba
Mamba (Show more)
Moderator
Posts: 10819
Since: 2004/4/23
#2

Re: block how to get xoopsModuleConfig var

You can use:

global $xoopsModuleConfig;


inside your function.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs