You are here

function search_api_exclude_node_update in Search API exclude 7

Implements hook_node_update().

1 call to search_api_exclude_node_update()
search_api_exclude_node_insert in ./search_api_exclude.module
Implements hook_node_insert().

File

./search_api_exclude.module, line 103
Allows users to exclude specific nodes from indexing by Search API.

Code

function search_api_exclude_node_update($node) {
  if (isset($node->search_api_exclude)) {
    if (!empty($node->search_api_exclude)) {
      search_api_exclude_add_node($node->nid);
    }
    else {
      search_api_exclude_remove_node($node->nid);
    }
  }
}