What are the hooks `ossn_add_hook`

Rich Lee Posted in Component Development 3 years ago

OSSN seems like a great tool. I started to build my own component but then I realized there's not much documentation besides: https://www.opensource-socialnetwork.org/wiki/view/737/how-to-write-a-simple-component-for-ossn

Questions:
1. What hooks are available as parameters for ossnaddhook function?
2. What callbacks are available as parameters for ossnregistercallback function?
3. Are there any plans to make more in-depth component documentation besides the basic ones that exists?

Hoping to launch this app soon in a production environment.

Thank You

Replies
Indonesian Arsalan Shah Replied 3 years ago
  1. Hooks are used to change a flow of something. Basic hook example is https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/v6.x/classes/OssnUser.php#L50 https://github.com/opensource-socialnetwork/SMTP/blob/master/ossn_com.php#L19
  2. Callbacks are something that you would like to know something happened. example are user created, deleted, object created, delete, annotation, messages, notification, like, group created, delete.
  3. Yes i was working somewhere to list all hooks and basic usage and I need to complete that before publish.