You are here

function apachesolr_multilingual_nodeapi in Apache Solr Multilingual 6.3

Same name and namespace in other branches
  1. 6 apachesolr_multilingual.module \apachesolr_multilingual_nodeapi()
  2. 6.2 apachesolr_multilingual.module \apachesolr_multilingual_nodeapi()

Implements hook_nodeapi().

File

./apachesolr_multilingual.module, line 24
Multilingual search using Apache Solr.

Code

function apachesolr_multilingual_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {
    case 'delete':

      // Translations have to be modified
      apachesolr_multilingual_node_update($node);
      break;
    case 'insert':
    case 'update':

      // Insert or update are the same
      apachesolr_multilingual_node_update($node);
      break;
  }
}