You are here

function party_update_7028 in Party 7

Mark all parties for re-indexing now we've fixed the track item change bug.

File

./party.install, line 325
Contains install hooks for the CRM party module.

Code

function party_update_7028() {
  $conditions = array(
    'enabled' => 1,
    'item_type' => $type,
    'read_only' => 0,
  );
  $indexes = search_api_index_load_multiple(FALSE, $conditions);
  if (!$indexes) {
    return;
  }
  foreach ($indexes as $index) {
    _search_api_index_reindex($index);
  }
}