AlkantarClanX12
| Current Path : /var/www/clients/client1/web1/web/sites/all/modules/i18n/i18n_sync/ |
| Current File : /var/www/clients/client1/web1/web/sites/all/modules/i18n/i18n_sync/i18n_sync.features.inc |
<?php
/**
* @file
* Feature integration
*/
/**
* Implements hook_features_pipe_node_alter().
*/
function i18n_sync_features_pipe_node_alter(&$pipe, $data, $export) {
if (!empty($data) && module_exists('variable')) {
variable_include();
foreach (variable_list_module('i18n_sync') as $variable) {
if (isset($variable['multiple']) && $variable['multiple'] === 'node_type') {
$children = variable_build($variable['name']);
if (!empty($children['children'])) {
foreach ($children['children'] as $child_variable) {
if (in_array($child_variable['index'], $data)) {
$pipe['variable'][] = $child_variable['name'];
}
}
}
}
}
}
}