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.

··public·function·getWidgetVariables($hookName,·array·$configuration)

But if I remove it the module does not install anymore

Link to comment
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.

Link to comment
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) {
            return;
        }

        $this->context->controller->addJqueryUI('ui.sortable');
        /* Style & js for fieldset 'slides configuration' */
        $html = '<script type="text/javascript">
            $(function() {
                var $mySlides = $("#slides");
                $mySlides.sortable({
                    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() {
                    $(this).css("cursor","move");
                    },
                    function() {
                    $(this).css("cursor","auto");
                });
            });
        </script>';

        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)
Link to comment
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...