You are here

function photos_search_status in Album Photos 7.3

Implements hook_search_status().

File

./photos.module, line 2839
Implementation of photos.module.

Code

function photos_search_status() {
  $result = _photos_get_photos();
  $total_pics = $result
    ->rowCount();
  $remaining = (int) $total_pics - (int) db_query('SELECT COUNT(*) from {search_dataset} AS s WHERE s.type = :type AND s.reindex = 0', array(
    ':type' => 'photos',
  ))
    ->fetchField();
  return array(
    "remaining" => $remaining,
    "total" => $total_pics,
  );
}