def core__generate_widget key, values, module_name
      widget = {}
      widget[:key] = key
      widget[:icon] = values[:icon] ? values[:icon] : 'check-circle'
      widget[:path] = values[:path] ? values[:path] : ''
      widget[:position] = values[:position] ? values[:position] : 999
      widget[:title] = values[:title] ? values[:title] : ''
      return widget
    end
def core__generate_widget key, values, module_name
      widget = {}
      widget[:key] = key
      widget[:icon] = values[:icon] ? values[:icon] : 'check-circle'
      widget[:path] = values[:path] ? values[:path] : ''
      widget[:position] = values[:position] ? values[:position] : 999
      widget[:title] = values[:title] ? values[:title] : ''
      return widget
    end
This function create a correct widget object for the header.