You are here

function msnf_translate in Multistep Nodeform 7

Wrapper function for i18n_string() if i18n_string enabled.

Parameters

<string> $name: Name of the string, like "msnf_step:<step_name>:<content_type>"

<string> $string: String in default language

Return value

<string> Translated string (or original text if no translation exists).

6 calls to msnf_translate()
msnf_delete_form in includes/msnf.field_ui.inc
Menu callback; present a form for removing a form step.
msnf_delete_form_submit in includes/msnf.field_ui.inc
Remove step from bundle.
msnf_preprocess_msnf_block_step_info in ./msnf.module
Define variables used in msnf-block-step-info.tpl.php.
msnf_preprocess_msnf_form_step_info in ./msnf.module
Define variables used in msnf-form-step-info.tpl.php.
_msnf_form_attach_buttons in ./msnf.module
Helper method to add the required buttons to a form.

... See full list

File

./msnf.module, line 1565
Main functions for module "Multistep Nodeform".

Code

function msnf_translate($name, $string) {
  if (!module_exists('i18n_string')) {
    return filter_xss($string);
  }
  if (is_array($name)) {
    $name = implode(':', $name);
  }
  $translation = i18n_string('msnf_step:' . $name, filter_xss($string));
  return html_entity_decode($translation, ENT_QUOTES);
}