You are here

function msnf_load_step in Multistep Nodeform 7

Loads a step definition.

Parameters

<string> $step_name: The name of the form step.

<string> $entity_type: The name of the entity.

<string> $bundle_name: The name of the bundle.

1 call to msnf_load_step()
msnf_step_menu_load in ./msnf.module
Menu Wildcard loader function to load step definitions.

File

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

Code

function msnf_load_step($step_name, $entity_type, $bundle_name) {
  ctools_include('export');
  $objects = ctools_export_load_object('msnf_step', 'conditions', array(
    'step_name' => $step_name,
    'entity_type' => $entity_type,
    'bundle' => $bundle_name,
  ));
  $object = array_shift($objects);
  if ($object && isset($object->data)) {
    return msnf_unpack($object);
  }
  return $object;
}