function ws_search_api_wsfields_entity_expires in Web Service Data 7
Implements hook_wsfields_entity_expires().
File
- modules/
ws_search_api/ ws_search_api.module, line 38 - Defines core functionality for web service integration with Search API
Code
function ws_search_api_wsfields_entity_expires($entity_type, $entity_id, $expire) {
// Tell search api we've received new information
search_api_track_item_change($entity_type, array(
$entity_id,
));
$record = array(
'entity_id' => $entity_id,
'entity_type' => $entity_type,
'expire' => $expire,
);
ws_search_api_update_record($record);
}