You are here

merge_translations.api.php in Merge translations 8

File

merge_translations.api.php
View 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

Namesort descending Description
hook_merge_translations_prepare_alter Add ability to alter $node values before add to translation.