function i18nstrings_group_info in Internationalization 6
Get refresh callback for a text group.
Parameters
$group:
Return value
callback
4 calls to i18nstrings_group_info()
- i18nstrings_admin_refresh in i18nstrings/
i18nstrings.admin.inc - Form callback. Refresh textgroups.
- i18nstrings_admin_settings in i18nstrings/
i18nstrings.admin.inc - Configure filters for string translation.
- i18nstrings_allowed_format in i18nstrings/
i18nstrings.module - Check if input format is allowed for translation or whether a textgroup is 'safe'.
- i18nstrings_refresh_group in i18nstrings/
i18nstrings.module - Refresh all user defined strings for a given text group.
File
- i18nstrings/
i18nstrings.module, line 997 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_group_info($group = NULL, $property = NULL) {
static $info;
if (!isset($info)) {
$info = module_invoke_all('locale', 'info');
}
if ($group && $property) {
return isset($info[$group][$property]) ? $info[$group][$property] : NULL;
}
elseif ($group) {
return isset($info[$group]) ? $info[$group] : array();
}
else {
return $info;
}
}