function apachesolr_user_status_callback in Apachesolr User 7
Status callback for ApacheSolr, for users.
1 string reference to 'apachesolr_user_status_callback'
- apachesolr_user_apachesolr_entity_info_alter in ./
apachesolr_user.module - @file Indexer for the user entities for the Apachesolr module.
File
- ./
apachesolr_user.module, line 38 - Indexer for the user entities for the Apachesolr module.
Code
function apachesolr_user_status_callback($entity_id, $entity_type) {
$status = db_query('SELECT status FROM {users} WHERE uid = :uid', array(
':uid' => $entity_id,
))
->fetchField();
return $status == 1;
}