Projet

Général

Profil

Révision c22e192e

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/includes/webform.components.inc
680 680

  
681 681
  // Clear the entity cache if Entity Cache module is installed.
682 682
  if (module_exists('entitycache')) {
683
    cache_clear_all($node->nid, 'cache_entity_node');
683
    entity_get_controller('node')->resetCache(array($node->nid));
684 684
  }
685 685

  
686 686
  $form_state['redirect'] = array('node/' . $node->nid . '/webform/components', isset($cid) ? array('query' => array('cid' => $cid)) : array());
......
735 735

  
736 736
  // Clear the entity cache if Entity Cache module is installed.
737 737
  if (module_exists('entitycache')) {
738
    cache_clear_all($node->nid, 'cache_entity_node');
738
    entity_get_controller('node')->resetCache(array($node->nid));
739 739
  }
740 740

  
741 741
  $form_state['redirect'] = 'node/' . $node->nid . '/webform/components';

Formats disponibles : Unified diff