• I am trying to develop a simple widget that displays some custom content (XHTML). In the options I use $_POST[‘module_id’] to identify the module, so that you can have several custom control widgets with different content.

    My question is: How do I get the module_id from the “front”, i.e. from the function I registered with register_sidebar_widget ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter daath

    (@daath)

    I am using the K2-theme. I patched their k2sbmModule->display to pass module_id ($this->id) to the registered function. Works now…
    Is there a better way, that I am not aware of?

    Thread Starter daath

    (@daath)

    heh, now also passing the module name ($this->name) to the callback, I am sure I am missing something!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Widget question, get the module id’ is closed to new replies.