Jump to content
MakeWebGames

Recommended Posts

Posted

I been going threw the code the last couple days just to see the flow of things, but I still can't figure out what the purpose of these hooks are for? If someone could explain and give a better example of using them cause for now, I don't see much of a purpose to them. They seem to be for creating menu links if I am correct?

 

Also, is there a simple way to call other module methods. For example: $this->leaderboards(): Future reference. As I don't see an easy way to call data from other modules without editing the module itself. 😞

Posted

im not great with hoocks  but ik what i seen so far , it add links, with sorting and for me it add icon, you can add condition to them lets say if user is in a gang he get this link instead of the other, i saw once a hook used for timers 

as for the other Q im not sure never hitted my mind but its great having just one function instead of coping it in 2 mods, i would love to hear more @Dayo

 

Posted

I posted something on hooks here

And as for calling other module methods, I don't believe so because I don't think they are auto-loaded. I think that you would have to require/include the file and instantiate the class and call the method but I am unsure of how that would work

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...