function weight_apachesolr_index_document_build_node in Weight 7.2
Implements hook_apachesolr_index_document_build_node().
File
- ./
weight.module, line 588
Code
function weight_apachesolr_index_document_build_node(ApacheSolrDocument $document, $node, $env_id) {
if (isset($node->weight_weight)) {
$document->is_weight = (int) $node->weight_weight;
}
else {
$settings = _weight_get_settings($node->type);
$document->is_weight = (int) $settings['default'];
}
}