Page 1 of 1

[fixed] RegisterModulePlugin()

Posted: Sun Aug 21, 2011 4:57 pm
by Jos
Every current module that has

Code: Select all

  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?

Re: RegisterModulePlugin()

Posted: Sun Aug 21, 2011 5:13 pm
by calguy1000
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).

Re: RegisterModulePlugin()

Posted: Sun Aug 21, 2011 5:21 pm
by Jos
fix confirmed