parameters: (crits_object, campaign, analyst)
docstring: Add this Campaign to all related top-level objects.
  
      :param crits_object: The top-level object to get relationships for.
      :type crits_object: class which inherits from
                      :class:`crits.core.crits_mongoengine.CritsBaseAttributes`
      :param campaign: The campaign to add to all related top-level objects.
      :type campaign: :class:`crits.core.crits_mongoengine.EmbeddedCampaign`
      :param analyst: The user adding this Campaign to the related top-level objects.
      :type analyst: str
docstring_summary: Add this Campaign to all related top-level objects.
docstring_tokens: Add this Campaign to all related top - level objects .
function: def campaign_addto_related(crits_object, campaign, analyst):
      """
      Add this Campaign to all related top-level objects.
  
      :param crits_object: The top-level object to get relationships for.
      :type crits_object: class which inherits from
                      :class:`crits.core.crits_mongoengine.CritsBaseAttributes`
      :param campaign: The campaign to add to all related top-level objects.
      :type campaign: :class:`crits.core.crits_mongoengine.EmbeddedCampaign`
      :param analyst: The user adding this Campaign to the related top-level objects.
      :type analyst: str
      """
  
      for r in crits_object.relationships:
          klass = class_from_type(r.rel_type)
          if not klass:
              continue
          robj = klass.objects(id=str(r.object_id)).first()
          if not robj:
              continue
          robj.add_campaign(campaign)
          try:
              robj.save(username=analyst)
          except ValidationError:
              pass
function_tokens: def campaign_addto_related ( crits_object , campaign , analyst ) : for r in crits_object . relationships : klass = class_from_type ( r . rel_type ) if not klass : continue robj = klass . objects ( id = str ( r . object_id ) ) . first ( ) if not robj : continue robj . add_campaign ( campaign ) try : robj . save ( username = analyst ) except ValidationError : pass