You are here

function i18n_string_group_info in Internationalization 7

Get textgroup info, from hook_locale('info')

Parameters

$group: Text group name.

$default: Default value to return for a property if not set.

9 calls to i18n_string_group_info()
i18n_string_admin_refresh_form in i18n_string/i18n_string.admin.inc
Form callback. Refresh textgroups.
i18n_string_i18n_string_list in i18n_string/i18n_string.i18n.inc
Implements hook_i18n_string_list().
i18n_string_l10n_client_save_string in i18n_string/i18n_string.pages.inc
Menu callback. Saves a string translation coming as POST data.
i18n_string_locale in i18n_string/i18n_string.module
Implements hook_locale().
i18n_string_locale_translate_edit_form in i18n_string/i18n_string.pages.inc
User interface for string editing.

... See full list

File

i18n_string/i18n_string.module, line 513
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_group_info($group = NULL, $property = NULL, $default = NULL) {
  $info =& drupal_static(__FUNCTION__, NULL);
  if (!isset($info)) {
    $info = module_invoke_all('i18n_string_info');
    drupal_alter('i18n_string_info', $info);
  }
  if ($group && $property) {
    return isset($info[$group][$property]) ? $info[$group][$property] : $default;
  }
  elseif ($group) {
    return isset($info[$group]) ? $info[$group] : array();
  }
  else {
    return $info;
  }
}