function uc_extra_fields_pane_i18n_string_list in Extra Fields Checkout Pane 7
Implements hook_i18n_string_list().
Provides a list of translatable strings for the ucxf text group.
Parameters
$group: The text group name.
Return value
array A list of translatable strings, keyed by text group.
File
- ./
uc_extra_fields_pane.i18n.inc, line 37 - Internationalization (i18n) hooks.
Code
function uc_extra_fields_pane_i18n_string_list($group) {
if ($group == 'ucxf') {
$strings = array();
$fields = UCXF_FieldList::getAllFields();
foreach ($fields as $field) {
$strings[$field->db_name] = uc_extra_fields_pane_i18n_get_strings($field);
}
$return = array(
'ucxf' => array(
'field' => $strings,
),
);
return $return;
}
}