You are here

function _msnf_steps_label in Multistep Nodeform 7

Same name and namespace in other branches
  1. 6 includes/msnf.steps.inc \_msnf_steps_label()

Provide labels for all steps.

File

includes/msnf.steps.inc, line 136
Step crud functions.

Code

function _msnf_steps_label($content_type) {
  $steps = msnf_steps($content_type);
  $labels[''] = '<' . t('none') . '>';
  foreach ($steps as $step_name => $step) {
    $labels[$step_name] = msnf_translate(array(
      $step['step_name'],
      $step['bundle'],
      'label',
    ), $step['label']);
  }
  return $labels;
}