function lingotek_uses_node_translation in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.util.inc \lingotek_uses_node_translation()
- 7.6 lingotek.util.inc \lingotek_uses_node_translation()
Return true if the node's profile is set to node-based translation, false otherwise.
Parameters
object $node:
Return value
True or False
6 calls to lingotek_uses_node_translation()
- lingotek_entity_delete_translations_form_submit in ./
lingotek.bulk_grid.inc - Submit handler for the lingotek_entity_delete_translations form.
- lingotek_entity_view_redirect in ./
lingotek.page.inc - This is a function that redirects to the entity specified for a particular lingotek locale (e.g., en_US, de_DE, fr_FR)
- lingotek_entity_xml_body in ./
lingotek.util.inc - Return the xml representation of the source content for an entity.
- lingotek_field_language_data_cleanup_update_entity in ./
lingotek.batch.inc - Ensures correct language-specific field data for the specified item.
- lingotek_form_node_form_alter in ./
lingotek.module - Implements hook_form_BASE_FORM_ID_alter().
File
- ./
lingotek.util.inc, line 2550 - Utility functions.
Code
function lingotek_uses_node_translation($node = NULL) {
if (!isset($node->lingotek['profile'])) {
return FALSE;
}
$profile = LingotekProfile::loadById($node->lingotek['profile']);
if ($profile
->isNodeBased()) {
return TRUE;
}
// Not using node-based translation.
return FALSE;
}