You are here

function search_by_page_search_status in Search by Page 7

Same name and namespace in other branches
  1. 8 search_by_page.module \search_by_page_search_status()

Implements hook_search_status().

File

./search_by_page.module, line 646
Main module file for Drupal module Search by Page.

Code

function search_by_page_search_status() {

  // Tell Search module how many items have been indexed, and how many not
  $total = db_query('SELECT COUNT(*) FROM {sbp_path}')
    ->fetchField();
  $remain = db_query('SELECT COUNT(*) FROM {sbp_path} p WHERE p.last_index_time = 0')
    ->fetchField();
  return array(
    'remaining' => $remain,
    'total' => $total,
  );
}