You are here

function msnf_build_pre_render in Multistep Nodeform 7

Process callback.

1 string reference to 'msnf_build_pre_render'
msnf_attach_steps in ./msnf.module
Attach steps to the (form) build.

File

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

Code

function msnf_build_pre_render($element) {

  // Skip the nesting and step functions if no steps are defined.
  // This could be because you don't see them in the UI or programmatically.
  if (empty($element['#steps'])) {
    return $element;
  }

  // Nest the fields in the corresponding steps.
  msnf_fields_nest($element);

  // Allow others to alter the pre_rendered build.
  drupal_alter('msnf_build_pre_render', $element);
  return $element;
}