function search_api_is_list_type in Search API 7
Utility function for determining whether a field of the given type contains a list of any kind.
Parameters
$type: A string containing the type to check.
Return value
bool TRUE iff $type is a list type ("list<*>").
14 calls to search_api_is_list_type()
- SearchApiAlterAddHierarchy::extractHierarchy in includes/
callback_add_hierarchy.inc - Extracts a hierarchy from a metadata wrapper by modifying $values.
- SearchApiAlterAddHierarchy::getHierarchicalFields in includes/
callback_add_hierarchy.inc - Finds all hierarchical fields for the current index.
- SearchApiAlterAddHierarchy::propertyInfo in includes/
callback_add_hierarchy.inc - Implements SearchApiAlterCallbackInterface::propertyInfo().
- SearchApiEntityDataSourceController::getIdFieldInfo in includes/
datasource_entity.inc - Returns information on the ID field for this controller's type.
- SearchApiFacetapiDate::execute in contrib/
search_api_facetapi/ plugins/ facetapi/ query_type_date.inc - Adds the filter to the query object.
File
- ./
search_api.module, line 2342 - Provides a flexible framework for implementing search services.
Code
function search_api_is_list_type($type) {
return substr($type, 0, 5) == 'list<';
}