11
Quote:
In 2.0.x, I beleive that each option within the $options array was check to know if it was itself an array. If so, then the option was implode and transformed into a string. So the actual $options saved in the database was a serialized version of :
Nope. XOOPS 2.0.x saves block options as an imploded string with | as delimiter, effectively making it impossible to use multi-valued options (multi-selects etc.)
The "normal" approach used in some modules is to have the multi-select as the last option and when figuring out, which options have what value, an array_slice is used to put all option values above a certain index into one option (a little difficult to explain).
I'll look at the spotlight block and see what I can find.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software