You are here

function word_link_node_update in Word Link 7

Implements hook_node_update().

File

./word_link.module, line 134
This module allows users to replace previously defined words to the links.

Code

function word_link_node_update($node) {
  $types = variable_get('word_link_node_types', array());

  // Check if for this node selected any field to convert words.
  if (!empty($types[$node->type]['fields'])) {
    $cache_key = "word_link_nid_{$node->nid}";
    cache_clear_all($cache_key, 'cache', TRUE);
  }
}