function support_substatus_apachesolr_update_index in Support Ticketing System 6
Implementation of hook_apachesolr_update_index().
File
- support_substatus/
support_substatus.module, line 529 - Support Substatus -- allows per-status sub-status values, so for example a "pending" ticket can be further marked with "needs review", etc. @author Jeremy Andrews <jeremy@tag1consulting.com> @package Support
Code
function support_substatus_apachesolr_update_index(&$document, $node) {
if (!isset($node->substatus->ssid)) {
$document->is_support_substatus = 0;
}
else {
$document->is_support_substatus = (int) $node->substatus->ssid;
}
}