Mario Augusto Posted December 6, 2018 Share Posted December 6, 2018 I am creating an addon module, created through the "array" a custom field for the person to put information. The point is, how do I capture the $vars information inside the hook.php file that I created inside the module folder? For it is through this information that I will perform a certain action within the database. In my case, the array field was named name "days", in the option _output I can capture it through $vars ['days'], because it is inside the same file, however when I try to use some external file, .php for example, returns me "NULL", as if the data was not coming to it. Awaiting return. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 7, 2018 Share Posted December 7, 2018 The hooks.php (s is required) file in the directory of your module works exactly as a standard action hook placed in includes/hook. They're not different. The value of $vars depends on the specific hook point you are using. If you need to get additional details that are not included in the hook you'll need to query db. 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.