// Instance Module library
$module = Module::instance();
// list all modules of application in application/config/config.php
echo Kohana::debug($module->list_all());
// list active modules of application in application/config/config.php
echo Kohana::debug($module->list_active());
// list inactive modules of application in application/config/config.php
echo Kohana::debug($module->list_inactive());
// active 'auth' module
$module->active('auth');
// inactive 'auth' module
$module->inactive('auth');
// add 'sample_module' module with description.
$module->add('sample_module', 'Just a sample module');