function bundle_clone_list in bundle clone 7
List of site entities.
Only entity that has bundles are displayed.
1 string reference to 'bundle_clone_list'
File
- ./
bundle_clone.module, line 42
Code
function bundle_clone_list() {
$bundles = field_info_bundles();
$items = array();
foreach ($bundles as $entity_type => $entity_bundles) {
if (count($entity_bundles) > 1) {
$items[] = l($entity_type, 'admin/structure/bundle_clone/' . $entity_type);
}
}
return array(
'#theme' => 'item_list',
'#items' => $items,
'#title' => t('Entities'),
);
}