Jump to content

problem with validator

Recommended Posts

Thank a lot for your help.

I have almost finished all the transformation of the module and the correction

Unused function parameter $hookName.

 Unused function parameter $configuration.


But if I remove it the module does not install anymore

Share this post

Link to post
Share on other sites

You can add them as variables and passed it to return, even if you do not use them later.

Or just leave it like that and point to Addons validation team you will not use them and 

have that warnings.


And to test module after validation fully.

Share this post

Link to post
Share on other sites

  • 4 weeks later...

Hello everyone,
I tried to validate my module but impossible with this :

    public function headerHTML()
        if (Tools::getValue('controller') != 'AdminModules' && Tools::getValue('configure') != $this->name) {

        /* Style & js for fieldset 'slides configuration' */
        $html = '<script type="text/javascript">
            $(function() {
                var $mySlides = $("#slides");
                    opacity: 0.6,
                    cursor: "move",
                    update: function() {
                        var order = $(this).sortable("serialize") + "&action=updateSlidesPosition";
                        $.post("'.$this->context->shop->physical_uri.$this->context->shop->virtual_uri.'modules/'.$this->name.'/ajax_'.$this->name.'.php?secure_key='.$this->secure_key.'", order);
                $mySlides.hover(function() {
                    function() {

        return $html;

I try to play java in a tpl or js, but this is not interpreted 

Thank for your help

Edited by Nocebo (see edit history)

Share this post

Link to post
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More