def core__get_widgets_for_module module_name
      module_configs = core__get_module_configs(module_name)
      return [] unless module_configs
      # load module items
      module_widgets = []
      if module_configs[:widgets]
        module_configs[:widgets].each do |key, value|
          module_widgets.push(core__generate_widget(key, value, module_name))
        end
      end
      # return module items
      return module_widgets
    end
def core__get_widgets_for_module module_name
      module_configs = core__get_module_configs(module_name)
      return [] unless module_configs
      # load module items
      module_widgets = []
      if module_configs[:widgets]
        module_configs[:widgets].each do |key, value|
          module_widgets.push(core__generate_widget(key, value, module_name))
        end
      end
      # return module items
      return module_widgets
    end
This function return the list of widgets for a specific module.