function globallink_get_all_translatable_bean_types_and_names in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.6 globallink_beans/globallink_beans.inc \globallink_get_all_translatable_bean_types_and_names()
1 call to globallink_get_all_translatable_bean_types_and_names()
- globallink_field in ./
globallink_field_configuration.inc - Renders form for globallink_field.
File
- globallink_beans/
globallink_beans.inc, line 386
Code
function globallink_get_all_translatable_bean_types_and_names() {
$entity_info = entity_get_info('bean');
$arr = array();
if (isset($entity_info) && isset($entity_info['bundles'])) {
$bundles = $entity_info['bundles'];
foreach ($bundles as $key => $bundle) {
$arr['bean:' . $key] = $bundle['label'];
}
asort($arr);
}
return $arr;
}