merge_translations.api.php in Merge translations 8
File
merge_translations.api.phpView source
<?php
/**
* @file
* merge_translations.api.php
*/
/**
* Add ability to alter $node values before add to translation.
*
* @param array $node_array
* Node_array.
*/
function hook_merge_translations_prepare_alter(array &$node_array) {
$node_array['title'][0]['value'] = 'Translated title';
}
Functions
Name | Description |
---|---|
hook_merge_translations_prepare_alter | Add ability to alter $node values before add to translation. |