list_external() as $mo) $result[$mo->name] = MODPATH.$mo->name; } return $result; } public static function module_config($item,array $value=NULL) { return Company::instance()->module_config($item,$value); } public static function module_exist($module) { return array_key_exists(strtolower($module),self::modules()) ? TRUE : FALSE; } /** * See if our emails for the template should be sent to configured admin(s) * * @param string template - Template to test for * @return mixed|array - Email to send test emails to */ public static function testmail($template) { $config = Kohana::$config->load('debug')->email_admin_only; if (is_null($config) OR ! is_array($config) OR empty($config[$template])) return FALSE; else return $config[$template]; } } ?>