public function FacetapiDependencyBundle::getBundleOptions in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::getBundleOptions()
- 7 plugins/facetapi/dependency_bundle.inc \FacetapiDependencyBundle::getBundleOptions()
Gets bundles.
Parameters
array $entity_types: An array containing the machine readable name of the entities.
Return value
An array of bundles associates with the entities.
1 call to FacetapiDependencyBundle::getBundleOptions()
- FacetapiDependencyBundle::settingsForm in plugins/
facetapi/ dependency_bundle.inc - Adds dependency settings to the form.
File
- plugins/
facetapi/ dependency_bundle.inc, line 114 - Performs a dependency check against the passed bundle.
Class
- FacetapiDependencyBundle
- Adds a dependency on bundle.
Code
public function getBundleOptions(array $entity_types) {
$options = array();
// No entities in D6 - Only nodes
$bundle_types = node_get_types();
foreach ($bundle_types as $bundle => $bundle_info) {
$options[$bundle] = check_plain($bundle_info->name);
}
return $options;
}