Jump to content

modules php override in v1.6.0.11?


stratboy

Recommended Posts

@vekia, I'm already using custom hooks:
 

<?php
if (!defined('_PS_VERSION_'))
    exit;

class BlockUserInfoOverride extends BlockUserInfo{

    public function install(){
        return (Module::install()
            && $this->registerHook('displayTop')
            && $this->registerHook('displayNav')
            && $this->registerHook('displayHeader')
            && $this->registerHook('displayHeaderTools'));
    }

    public function hookDisplayHeaderTools($params){
        return $this->hookDisplayTop($params);
    }

}
Link to comment
Share on other sites

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...