A callback triggered after component is deleted. It is useful when you wanted to perform some action once component is deleted.

~~~
<?php
function my_component_init(){
ossn_register_callback('component', 'deleted', 'my_component_cb');
}
function my_component_cb($callback, $type, $params){
//$params['component'] OssnComponent object (id, com_id).
}
~~~

Components after deleted