Andy259 Posted April 19, 2023 Share Posted April 19, 2023 I found a post here , which works great but now I want to do the same thing just the button going to a different URL, I have tried changing the module name as well as the folder and all the references I can find to custom(as thats What the module is called.) does anyone know what other code i would nedd to change? 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted April 21, 2023 Share Posted April 21, 2023 You can use as many custom hooks as you want, as it is the name that must be unique for each individual hook. 0 Quote Link to comment Share on other sites More sharing options...
Andy259 Posted April 21, 2023 Author Share Posted April 21, 2023 6 hours ago, web2008 said: You can use as many custom hooks as you want, as it is the name that must be unique for each individual hook. Thanks web2008, I have changed all the names in the example above it was named Custom so i changed it to something else, now if i create another custom hook and just call it custom it either doesn't show in the modules or wont work at all 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted April 25, 2023 Share Posted April 25, 2023 Why do you give the name "Custom"? For example, my hooks have the following names: hide_products_status.php What do you mean about "doesn`t show in the modules" ? Are we now talking about hooks stored in /includes/hooks/ ? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted April 25, 2023 Share Posted April 25, 2023 Your hooks won't show up as a module. A hook is not a module - but a module can have hooks. The name of your hook doesn't matter. The only thing that matters is that it's placed inside /includes/hooks and is a .php file. You can have multiple hooks in the same file if you want to. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted April 26, 2023 Share Posted April 26, 2023 Good answer DennisHermannsen ! This probably explains the problem... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.