A callback triggered before component enabled (not load) . This is useful hook to check if some component trying to enable and you don not wanted it to get enabled.

~~~
<?php
function my_component_init(){
ossn_register_callback('component', 'before:enable', 'my_component_cb');
}
function my_component_cb($callback, $type, $params){
//$params['component'] id of component that is going to be enabled.
}
~~~

Components before enable