Projet

Général

Profil

Révision 018e218c

Ajouté par Assos Assos il y a plus de 10 ans

Weekly update of contrib modules

Voir les différences:

htmltest/sites/all/modules/flag/includes/flag/flag_flag.inc
788 788
      }
789 789
    }
790 790
    elseif ($action == 'flag') {
791
      // Invoke hook_entity_presave().
792
      module_invoke_all('entity_presave', $flagging, 'flagging');
793

  
791 794
      if ($this->uses_anonymous_cookies()) {
792 795
        $this->_flag_anonymous($entity_id);
793 796
      }
......
850 853
  private function _insert_flagging($flagging) {
851 854
    field_attach_presave('flagging', $flagging);
852 855
    field_attach_insert('flagging', $flagging);
856
    // Invoke hook_entity_insert().
857
    module_invoke_all('entity_insert', $flagging, 'flagging');
853 858
  }
854 859
  private function _update_flagging($flagging) {
855 860
    field_attach_presave('flagging', $flagging);
856 861
    field_attach_update('flagging', $flagging);
857 862
    // Update the cache.
858 863
    entity_get_controller('flagging')->resetCache();
864
    // Invoke hook_entity_update().
865
    module_invoke_all('entity_update', $flagging, 'flagging');
859 866
  }
860 867
  private function _delete_flagging($flagging) {
861 868
    field_attach_delete('flagging', $flagging);
862 869
    // Remove from the cache.
863 870
    entity_get_controller('flagging')->resetCache();
871
    // Invoke hook_entity_delete().
872
    module_invoke_all('entity_delete', $flagging, 'flagging');
864 873
  }
865 874

  
866 875
  /**

Formats disponibles : Unified diff