function lingotek_get_content_types in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_get_content_types()
- 7.2 lingotek.util.inc \lingotek_get_content_types()
- 7.4 lingotek.util.inc \lingotek_get_content_types()
- 7.5 lingotek.util.inc \lingotek_get_content_types()
- 7.6 lingotek.util.inc \lingotek_get_content_types()
1 call to lingotek_get_content_types()
- lingotek_batch_identify_content in ./
lingotek.batch.inc - Batch Create: Lingotek Identify Content - create informative lingonode data (in lingotek table) for pre-existing content
File
- ./
lingotek.util.inc, line 873 - Utility functions.
Code
function lingotek_get_content_types($ids_only = FALSE) {
$raw_types = node_type_get_types();
$types = array();
foreach ($raw_types as $raw_type_id => $raw_type) {
$lingotek_supported_explicitly = variable_get('language_content_type_' . $raw_type_id, NULL) == LINGOTEK_ENABLED;
if ($lingotek_supported_explicitly) {
$types[$raw_type_id] = $raw_type;
}
}
return $ids_only ? array_keys($types) : $types;
}