function globallink_get_all_translatable_file_types in GlobalLink Connect for Drupal 7.7
1 call to globallink_get_all_translatable_file_types()
- globallink_field in ./
globallink_field_configuration.inc - Renders form for globallink_field.
File
- globallink_file_entity/
globallink_file_entity.inc, line 3
Code
function globallink_get_all_translatable_file_types() {
$entity_info = entity_get_info('file');
$arr = array();
if (isset($entity_info) && isset($entity_info['bundles'])) {
$bundles = $entity_info['bundles'];
foreach ($bundles as $key => $bundle) {
$arr['file:' . $key] = $bundle['label'];
}
asort($arr);
}
return $arr;
}