function globallink_get_all_translatable_customentity_types_and_names in GlobalLink Connect for Drupal 7.7
1 call to globallink_get_all_translatable_customentity_types_and_names()
- globallink_field in ./
globallink_field_configuration.inc - Renders form for globallink_field.
File
- globallink_custom_entity/
globallink_custom_entity.inc, line 472
Code
function globallink_get_all_translatable_customentity_types_and_names() {
$rows = db_select('eck_bundle', 'eb')
->fields('eb')
->execute();
$arr = array();
foreach ($rows as $row) {
$arr['ce:' . $row->machine_name] = $row->name;
}
asort($arr);
return $arr;
}