function _search_by_page_update_last_time in Search by Page 7
Same name and namespace in other branches
- 8 search_by_page.module \_search_by_page_update_last_time()
- 6 search_by_page.module \_search_by_page_update_last_time()
Internal function: updates the last index time.
Parameters
$pid: pid to update
$time: time to update to
3 calls to _search_by_page_update_last_time()
- search_by_page_force_reindex in ./
search_by_page.module - Forces a page to be reindexed at the next cron run.
- search_by_page_reset_blank in ./
search_by_page.module - Resets pages that have no words in search index, so they'll be reindexed.
- search_by_page_update_index in ./
search_by_page.module - Implements hook_update_index().
File
- ./
search_by_page.module, line 1796 - Main module file for Drupal module Search by Page.
Code
function _search_by_page_update_last_time($pid, $time = 0) {
db_update('sbp_path')
->fields(array(
'last_index_time' => $time,
))
->condition('pid', $pid)
->execute();
}