You are here

function fctw_t in Field collection tabs widget 7

Helper function to integrate with the i18n_strings module.

Parameters

string $name: Textgroup and context glued with ':'.

string $string: The raw db value for the given property

string $langcode: Optional language code to override the page requested one.

2 calls to fctw_t()
theme_fctw_add_new_tab in ./field_collection_tabs_widget.module
Theme function to theme the "Add a new tab" tab.
theme_field_collection_tabs_widget_field_multiple_value_form in ./field_collection_tabs_widget.module
Replacement for theme_field_multiple_value_form().

File

./field_collection_tabs_widget.module, line 567
Provides widget for field collections on tabs

Code

function fctw_t($name, $string, $langcode = NULL) {
  $i18n =& drupal_static(__FUNCTION__);
  if (!isset($i18n)) {
    $i18n = module_exists('i18n_string');
  }
  return $i18n ? i18n_string($name, $string, array(
    'langcode' => $langcode,
  )) : $string;
}