i18n_sync.features.inc in Internationalization 7
Feature integration
File
i18n_sync/i18n_sync.features.incView source
<?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'];
}
}
}
}
}
}
}
Functions
Name | Description |
---|---|
i18n_sync_features_pipe_node_alter | Implements hook_features_pipe_node_alter(). |