You are here

function _msnf_i18nstrings_step_translate in Multistep Nodeform 6

1 call to _msnf_i18nstrings_step_translate()
msnf_steps in includes/msnf.steps.inc
Returns all steps for a content type.

File

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

Code

function _msnf_i18nstrings_step_translate(&$step) {
  if (module_exists('i18nstrings')) {
    $step['label'] = i18nstrings('msnf:step_fields:' . $step['step_name'] . ':label', $step['label']);
    $step['settings']['form']['description'] = i18nstrings('msnf:step_fields:' . $step['step_name'] . ':form_description', $step['settings']['form']['description']);
    $step['settings']['form']['button_label']['previous'] = i18nstrings('msnf:step_fields:' . $step['step_name'] . ':form_button_label_previous', $step['settings']['form']['button_label']['previous']);
    $step['settings']['form']['button_label']['next'] = i18nstrings('msnf:step_fields:' . $step['step_name'] . ':form_button_label_next', $step['settings']['form']['button_label']['next']);
  }
}