Previous1Next
Stano
Posts: 483
Themes: 1
Plugins: 14
Downloads: 28.8k

I would like to add a hook for the action GetContent_After, but I don't know, what and where should I write. What commands or directives? must be written in the Addon.ini file and what in gadget.php script? Some example please... thanks.

3 years ago#2077
Stano
Posts: 483
Themes: 1
Plugins: 14
Downloads: 28.8k

Well, all clear. First I thought, to use the function gpPlugin::Action('GetContent_After'); as shown here, but it is an example of how does the hooks work. The solution is alike described here:

Addon.ini

[GetContent_After]
script = ccm_gadget.php
method = ccm_gadget::GetCookies

Edited: 3 years ago#2092
Previous1Next

gpEasy News

4.3.2
2/18/2014

The final release of gpEasy 4.3.2 is now available. This is primarily a third-party package ... Read More

4.3 Final
11/4/2013

The wait is over. The final release of gpEasy 4.3 brings some exciting new features ... Read More

More News

Communics Communication Designers

We convert your static HTML website to gp|Easy with ease. We are specialised in small websites build with the latest web technologies and design trends. O yeah, and responsive of c...

Find out more about gpEasy's Provider Spotlight

Log In

  Register