function language_features_export in Features 7
Same name and namespace in other branches
- 7.2 includes/features.locale.inc \language_features_export()
Implements hook_features_export().
File
- includes/
features.locale.inc, line 32 - Features hooks for language.
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();
}