function fe_paths_get_bundle_names in File Entity Paths 7.2
Get all bundle of an entity type.
Parameters
$entity_tyoe:
Return value
mixed
4 calls to fe_paths_get_bundle_names()
- fe_paths_entity_edit_form in ./
fe_paths.admin.inc - Form builder for File Entity Paths configuration add/edit form.
- fe_paths_have_valid_bundle in ./
fe_paths.module - fe_paths_update_7002 in ./
fe_paths.install - Implements hook_update_7002();
- theme_fe_paths_config_data in ./
fe_paths.module
File
- ./
fe_paths.module, line 844 - Contains functions for the File Entity Paths module.
Code
function fe_paths_get_bundle_names($entity_type) {
$entity = entity_get_info($entity_type);
$bundles = array();
foreach ($entity['bundles'] as $key => $bundle) {
$bundles[$key] = $bundle['label'];
}
return $bundles;
}