You are here

function search_api_exclude_remove_node in Search API exclude 7

Removes the "Exclude" entry for a specific node.

Parameters

int $nid: The node's NID.

3 calls to search_api_exclude_remove_node()
search_api_exclude_node_delete in ./search_api_exclude.module
Implements hook_node_delete().
search_api_exclude_node_update in ./search_api_exclude.module
Implements hook_node_update().
search_api_exclude_reset_status_action in ./search_api_exclude.module
Action function.

File

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

Code

function search_api_exclude_remove_node($nid) {
  db_delete('search_api_exclude')
    ->condition('nid', $nid)
    ->execute();
}