Projet

Général

Profil

Révision 4cfd8be6

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/includes/flag/flag_flag.inc
793 793
   * Create a new Flagging to flag an entity.
794 794
   *
795 795
   * @param $flagging
796
   *  The flagging entity that is to be removed.
796
   *  The flagging entity that is to be saved.
797 797
   * @param $entity_id
798
   *  The entity ID of entity being unflagged.
798
   *  The entity ID of entity being flagged.
799 799
   * @param $account
800
   *  The account performing the unflagging.
800
   *  The account performing the flagging.
801 801
   */
802 802
  private function flagging_insert($flagging, $entity_id, $account) {
803 803
    if ($this->uses_anonymous_cookies()) {
......
841 841
    }
842 842
  }
843 843

  
844
  /**
845
   * Invoke a Rules event in reaction to a flagging or unflagging.
846
   *
847
   * @param $action
848
   *   Either 'flag' or 'unflag'.
849
   * @param $flagging
850
   *  The flagging entity that is to be removed.
851
   * @param $entity_id
852
   *  The entity ID of entity being unflagged.
853
   * @param $account
854
   *  The account performing the unflagging.
855
   */
856
  protected function invoke_rules_event($action, $flagging, $entity_id, $account) {
857
    // We only support flags on entities: do nothing in this class.
858
    // See flag_entity::invoke_rules_event().
859
    return;
860
  }
861

  
862 844
  /**
863 845
   * Update a Flagging.
864 846
   *
865 847
   * @param $flagging
866
   *  The flagging entity that is to be removed.
848
   *  The flagging entity that is being updated.
867 849
   * @param $entity_id
868
   *  The entity ID of entity being unflagged.
850
   *  The entity ID of entity the flagging is on.
869 851
   * @param $account
870
   *  The account performing the unflagging.
852
   *  The account performing the action.
871 853
   */
872 854
  private function flagging_update($flagging, $entity_id, $account) {
873 855
    // Invoke presave hooks.
......
945 927
    }
946 928
  }
947 929

  
930
  /**
931
   * Invoke a Rules event in reaction to a flagging or unflagging.
932
   *
933
   * @param $action
934
   *   Either 'flag' or 'unflag'.
935
   * @param $flagging
936
   *  The flagging entity that is either newly created or about to be deleted.
937
   * @param $entity_id
938
   *  The entity ID of entity being flagged or unflagged.
939
   * @param $account
940
   *  The account performing the action.
941
   */
942
  protected function invoke_rules_event($action, $flagging, $entity_id, $account) {
943
    // We only support flags on entities: do nothing in this class.
944
    // See flag_entity::invoke_rules_event().
945
    return;
946
  }
947

  
948 948
  /**
949 949
   * Construct a new, empty flagging entity object.
950 950
   *

Formats disponibles : Unified diff