code: def linkify_s_by_module(self, modules):
          
          for i in self:
  
              links_list = strip_and_uniq(i.modules)
              new = []
              for name in [e for e in links_list if e]:
                  module = modules.find_by_name(name)
                  if module is not None and module.uuid not in new:
                      new.append(module)
                  else:
                      i.add_error("Error: the module %s is unknown for %s" % (name, i.get_name()))
  
              i.modules = new
docs: Link modules to items
  
          :param modules: Modules object (list of all the modules found in the configuration)
          :type modules: alignak.objects.module.Modules
          :return: None