function language_features_export in Features 7.2
Same name and namespace in other branches
- 7 includes/features.locale.inc \language_features_export()
Implements hook_features_export().
File
- includes/
features.locale.inc, line 34 - Features integration for 'locale' module.
Code
function language_features_export($data, &$export, $module_name = '') {
$export['dependencies']['features'] = 'features';
$export['dependencies']['locale'] = 'locale';
$language_list = locale_language_list('native', TRUE);
foreach ($data as $name) {
// Only export existing languages.
if (!empty($language_list[$name])) {
// Add language to exports.
$export['features']['language'][$name] = $name;
}
}
// No pipe to return.
return array();
}