function _locale_feeds_target_is_translatable in Feeds 7.2
Determines if a target is translatable.
Parameters
string $entity_type: The entity type.
string $target: The target.
Return value
bool Returns true if the target is translatable, false if not.
2 calls to _locale_feeds_target_is_translatable()
- locale_feeds_form_callback in mappers/
locale.inc - Form callback.
- locale_feeds_summary_callback in mappers/
locale.inc - Summary callback.
File
- mappers/
locale.inc, line 112 - On behalf implementation of Feeds mapping API for locale.module.
Code
function _locale_feeds_target_is_translatable($entity_type, $target) {
list($field_name) = explode(':', $target, 2);
$info = field_info_field($field_name);
return !empty($info) && field_is_translatable($entity_type, $info);
}