jfreak53 Posted October 4, 2013 Share Posted October 4, 2013 How do I grab the module config from inside it's hook? I was looking through the documentation and couldn't find it anywhere. Basically I have a module with basic config options; option1, option2, option3 Then inside the hooks.php file I want to grab these config options. But I'm not finding this in the documentation anywhere. 0 Quote Link to comment Share on other sites More sharing options...
jfreak53 Posted October 4, 2013 Author Share Posted October 4, 2013 Nevermind, found it in another module with hooks. Gotta grab it manually from DB using something like: $q = @mysql_query("SELECT * FROM tbladdonmodules WHERE module = 'moduleName'"); while ($arr = mysql_fetch_array($q)) { $settings[$arr['setting']] = html_entity_decode($arr['value']); } I also noticed I posted this in the wrong place, an admin can move please. Maybe this can serve someone else in the future to grab module settings for hooks. Thanks. 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.