A hook to set a required components. Components marked required can not be disabled nor deleted from administrator panel.

~~~
<?php
function my_component_init(){
ossn_add_hook('required', 'components', 'my_component_hook');
}
function my_component_hook($hook, $type, $required, $instance){
$required[] = 'OssnGroups'; //change this with your component
$retuired[] = 'NewComponent'; //adding more required components.
return $required;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~

Component required