public static function get_mod_name($type) {
        static $types;

        if (!is_array($types)) {
            global $DB;
            $types = $DB->get_records('modules');
        }

        return $types[$type]->name;
    }
public static function get_mod_name($type) {
        static $types;

        if (!is_array($types)) {
            global $DB;
            $types = $DB->get_records('modules');
        }

        return $types[$type]->name;
    }
public static function get_mod_name ( $ type ) { static $ types ; if ( ! is_array ( $ types ) ) { global $ DB ; $ types = $ DB -> get_records ( 'modules' ) ; } return $ types [ $ type ] -> name ; }
Get module instance module type

@param int $type Module type id
@return string
Get module instance module type