blackarma Posted June 5, 2015 Share Posted June 5, 2015 (edited) Hey, Writing some custom csv import stuff and i would like to register for "actionCustomerAddBefore" hook from my override controller (NOT MODULE). Looking at the source of Hook class it looks like only modules have option like that. Do i really have to create module just to register for this hook? Edited June 5, 2015 by blackarma (see edit history) Link to comment Share on other sites More sharing options...
innovacy Posted June 6, 2015 Share Posted June 6, 2015 I fear yes. The function to register on hooks depends heavily on the presence of a module, as also the way it is stored in a database (uses id_module) and how the Hook caller searches for the method to call associated with it. So there is no easy way to even "hack" a different method in it without writing a module. Link to comment Share on other sites More sharing options...
blackarma Posted June 7, 2015 Author Share Posted June 7, 2015 Thank you innovacy for your answer! I'll go ahead and move code into modules. 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