function bundle_clone_entity_items in bundle clone 7
Source and target entity bundles widgets.
1 call to bundle_clone_entity_items()
- bundle_clone_config in ./
bundle_clone.module - Base configuration form elements.
File
- ./
bundle_clone.module, line 85
Code
function bundle_clone_entity_items($bundles) {
$items = array();
$options = array(
'none' => t('None'),
);
foreach ($bundles as $name => $info) {
$options[$name] = check_plain($info['label']);
}
$items['source'] = array(
'#type' => 'select',
'#title' => 'Source',
'#options' => $options,
);
$items['targets'] = array(
'#type' => 'select',
'#multiple' => TRUE,
'#title' => 'Targets',
'#options' => $options,
);
return $items;
}