function wsfields_storage_entity_has_wsfields in Web Service Data 7
Returns whether the entity_type has a wsfield attached to it and cache the result
2 calls to wsfields_storage_entity_has_wsfields()
- WsfieldStorageDrupalDatabaseCache::set in modules/
wsfields_storage/ wsfields_storage.cache.inc - Implements DrupalCacheInterface::set().
- ws_search_api_search_api_index_items_alter in modules/
ws_search_api/ ws_search_api.module - Implements hook_search_api_index_items_alter().
File
- modules/
wsfields_storage/ wsfields_storage.module, line 56 - Storage controller definitions
Code
function wsfields_storage_entity_has_wsfields($entity_type) {
$ret = cache_get('wsfields_storage_entity_has_wsfields:' . $entity_type, 'cache');
if (!$ret) {
$ret = _wsfields_storage_entity_has_wsfields($entity_type);
cache_set('wsfields_storage_entity_has_wsfields:' . $entity_type, $ret, 'cache');
}
else {
$ret = $ret->data;
}
return $ret;
}