You are here

function _eloqua_form_url_get_component_path in Eloqua 6

Returns the nesting keys for a component

Parameters

$component_list:

$target_component:

Return value

array

1 call to _eloqua_form_url_get_component_path()
_eloqua_form_url_map in ./eloqua.module
Maps the url parameters to the associated form fields

File

./eloqua.module, line 586

Code

function _eloqua_form_url_get_component_path($component_list, $target_component) {
  $path = array(
    $target_component['form_key'],
  );
  $current_component = $target_component;

  // Walk up the path
  while ($current_component != NULL && $current_component['pid'] != 0) {
    $current_component = $component_list[$current_component['pid']];
    array_unshift($path, $current_component['form_key']);
  }
  return $path;
}