function i18n_string_i18n_string_list in Internationalization 7
Implements hook_i18n_string_list().
Collect all strings from objects of this group.
File
- i18n_string/
i18n_string.i18n.inc, line 27 - Implementation of i18n hooks
Code
function i18n_string_i18n_string_list($group) {
$strings = array();
// It may be for one group or all groups
$groups = $group == 'all' ? array_keys(i18n_string_group_info()) : array(
$group,
);
foreach ($groups as $group) {
// Compile strings for object types for this group
foreach (i18n_string_group_object_types($group) as $type) {
$type_strings = i18n_string_object_type_string_list($type);
if ($type_strings && !empty($type_strings[$group])) {
$strings[$group] = isset($strings[$group]) ? i18n_string_array_merge($strings[$group], $type_strings[$group]) : $type_strings[$group];
}
}
}
return $strings;
}