CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[fixed] RegisterModulePlugin()
https://forum.cmsmadesimple.org/viewtopic.php?f=75&t=56308
Page 1 of 1

Author:  Jos [ Sun Aug 21, 2011 4:57 pm ]
Post subject:  [fixed] RegisterModulePlugin()

Every current module that has
\$1:
  function SetParameters()
  {
     $this->RegisterModulePlugin();

Can not be called with the short tag anymore.

Tested with Gallery 1.4.4 and FormBuilder 0.7

Is this by intention?

Author:  calguy1000 [ Sun Aug 21, 2011 5:13 pm ]
Post subject:  Re: RegisterModulePlugin()

The SetParameters method has been deprecated (but not removed). it has been replaced by the InitializeFrontend() and InitializeAdmin() methods that are much more obvious.

For Reference purposes (going forward) the CreateParameter() calls should be done from within the InitializeAdmin method (so that parameters can show up inside the module help). The SetParameterType(), RegisterRoute(), RestrictUnknownParams(), and RegisterModulePlugin() methods should be called from within the InitializeFrontend() methods.

In order to minimize the backwards compatibility issues, I have modifed the CMSModule() class to call SetParameters() from within those two methods (InitializeFrontend() and InitializeAdmin()). This will be removed at a later date (Probably in 1.11 or 1.12).

Author:  Jos [ Sun Aug 21, 2011 5:21 pm ]
Post subject:  Re: RegisterModulePlugin()

fix confirmed

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/