Hook to override the default behavior of object creation.

~~~
<?php
function my_component_init(){
ossn_add_hook('object','create', 'my_component_hook');
}
function my_component_hook($hook, $type, $allowed_or_not, $instance){
//$instance contain OssnObject object
//allowed_or_not contains true|false
error_log(print_r($instance, true));
return $allowed_or_not;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~

Object create