You are here

function globallink_is_field_translatable in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink.module \globallink_is_field_translatable()
  2. 7.6 globallink.module \globallink_is_field_translatable()

Implements hook_globallink_is_field_translatable().

3 calls to globallink_is_field_translatable()
globallink_entity_traverse_fields_and_field_collections in globallink_entity/globallink_entity.inc
Traverses entity fields and field collections.
globallink_generate_xml_document in ./globallink_node.inc
Builds XML document with translation data.
globallink_traverse_fields_and_field_collections in ./globallink_node.inc
Recursively adds fields and field collections to translation XML document.

File

./globallink.module, line 1621
GlobalLink translation module.

Code

function globallink_is_field_translatable($node, $field, $drupal_target_locale = NULL) {
  $result = module_invoke_all('globallink_is_field_translatable', $node, $field, $drupal_target_locale);
  if (count($result) > 0) {
    return TRUE;
  }
  return FALSE;
}