function i18n_string_textgroup in Internationalization 7
Get textgroup handler.
Return value
i18n_string_textgroup_default
4 calls to i18n_string_textgroup()
- i18nStringTestCase::testCaching in i18n_string/
i18n_string.test - Test base i18n_string caching.
- i18n_field_prime_caches in i18n_field/
i18n_field.module - Prime the cache to avoid single db queries for entity fields / properties.
- i18n_string_object::textgroup in i18n_string/
i18n_string.inc - Access textgroup object
- i18n_string_object_wrapper::textgroup in i18n_string/
i18n_string.inc - Get textgroup object
1 string reference to 'i18n_string_textgroup'
- i18nStringTestCase::testCaching in i18n_string/
i18n_string.test - Test base i18n_string caching.
File
- i18n_string/
i18n_string.module, line 380 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_textgroup($textgroup) {
$groups =& drupal_static(__FUNCTION__);
if (!isset($groups[$textgroup])) {
$class = i18n_string_group_info($textgroup, 'class', 'i18n_string_textgroup_default');
$groups[$textgroup] = new $class($textgroup);
}
return $groups[$textgroup];
}