function lingotek_translatable_node_types in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lingotek.util.inc \lingotek_translatable_node_types()
- 7.4 lingotek.util.inc \lingotek_translatable_node_types()
Content node types linked to 'translatable' fields.
3 calls to lingotek_translatable_node_types()
- LingotekSync::getETNodeIds in lib/
Drupal/ lingotek/ LingotekSync.php - lingotek_field_language_data_cleanup_batch_create in ./
lingotek.batch.inc - Field Language Data Cleanup Utility
- lingotek_get_type_field_mapping in ./
lingotek.dashboard.inc - Returns an array that maps a content_type to one (and just 1) of its translated fields. We can then use that array to track how many nodes have been translated.
File
- ./
lingotek.util.inc, line 525 - Utility functions.
Code
function lingotek_translatable_node_types() {
$types = array();
$fields = lingotek_translatable_node_field_details();
foreach ($fields as $field) {
foreach ($field['bundles'] as $bundle) {
$types[$bundle] = $bundle;
}
}
if (count($types) > 0) {
$types = array_keys($types);
}
return $types;
}