function apachesolr_update_6003 in Apache Solr Search 6.2
Same name and namespace in other branches
- 6 apachesolr.install \apachesolr_update_6003()
Re-index nodes in books.
File
- ./
apachesolr.install, line 227 - Install, update and uninstall functions for the apachesolr module.
Code
function apachesolr_update_6003() {
$ret = array();
if (module_exists('book')) {
$time = (int) time();
$ret[] = update_sql("UPDATE {apachesolr_search_node} SET changed = {$time} WHERE nid IN (SELECT nid from {book})");
}
return $ret;
}