icee Posted August 13, 2014 Share Posted August 13, 2014 Hello, I've come here for your expert opinion about hooks. For start I have a very basic question: Is it possible that if I unhook a module function, somehow the module will be hooked again by itself ? I unhooked the function from the GUI of Presta. Thanks, icee Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2014 Share Posted August 17, 2014 the main important question at the moment is: what you mean by "unhook module function" ? you mean, that you unhoked module from hook, or that you remove some functions from module code? Link to comment Share on other sites More sharing options...
icee Posted August 17, 2014 Author Share Posted August 17, 2014 I unhooked a module function from prestashop. Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2014 Share Posted August 17, 2014 i dont get it you unhooked module from hook? or removed function from module .php code? Link to comment Share on other sites More sharing options...
icee Posted August 17, 2014 Author Share Posted August 17, 2014 I didn't do anything to the code. Link to comment Share on other sites More sharing options...
El Patron Posted August 17, 2014 Share Posted August 17, 2014 it would only re-hook if re-installed. I think that is what you are asking. Link to comment Share on other sites More sharing options...
icee Posted August 17, 2014 Author Share Posted August 17, 2014 No it wasn't reinstalled. Maybe I just saved some settings in the module configuration. I'm not sure if after that it re-hooked by itself. Link to comment Share on other sites More sharing options...
El Patron Posted August 17, 2014 Share Posted August 17, 2014 No it wasn't reinstalled. Maybe I just saved some settings in the module configuration. I'm not sure if after that it re-hooked by itself nope, saving would not make a difference ps will 'only' add hook automatically at installation (someone may know different), so if we delete hook from positions then module will not be called for that hook, though modules can have more than one hook. Link to comment Share on other sites More sharing options...
icee Posted August 17, 2014 Author Share Posted August 17, 2014 This is weird.. Link to comment Share on other sites More sharing options...
El Patron Posted August 17, 2014 Share Posted August 17, 2014 This is weird.. without exact details to recreate by community then it will stay that weird. Link to comment Share on other sites More sharing options...
icee Posted August 17, 2014 Author Share Posted August 17, 2014 The exact details are: Installed a module that syncs with another marketplace; That module had a function that I din not want; Asked the developer how to disable it; Disabled it from Prestashop UI; It seems it automaticlly re-hooks; Here I am asking why is that happening. If you need something more, please tell me. Link to comment Share on other sites More sharing options...
El Patron Posted August 18, 2014 Share Posted August 18, 2014 so you deleted hook from modules-->positions? then it seems to rehook? or does rehook? it is possible I suppose to code module to re-hook outside of clicking install, that would need to be brought up with the developer Link to comment Share on other sites More sharing options...
icee Posted August 19, 2014 Author Share Posted August 19, 2014 (edited) Today I found out that the simple accessing of the module settings page re-hooks the function. Edited August 19, 2014 by icee (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now