Plugin view type

You can change default plugin types to anything else so it appears like /plugins// rather /plugins/default/ It is useful if you just wanted to override views for example some devices.

<?php
function my_component_init(){
		ossn_add_hook('plugin', 'view:type', 'my_component_hook');
}
function my_component_hook($hook, $type, string $viewtype, array $vars){
			//$viewtype contains previous view type which is `default` 
			//$vars['plugin'] contain the plugin name
			return 'your view type';
}
ossn_register_callback('ossn', 'init', 'my_component_init');