A callback triggered before component is deleted. It is useful when you wanted to perform some action before the actual component is deleted.

~~~
<?php
function my_component_init(){
ossn_register_callback('component', 'before:delete', 'my_component_cb');
}
function my_component_cb($callback, $type, $params){
//$params['component'] id of component.
}
~~~

Components before delete