You are here

function _feedapi_populate_get_setting in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.module \_feedapi_populate_get_setting()

Gets the setting for '#parent' (there must be a more efficent way)

1 call to _feedapi_populate_get_setting()
_feedapi_populate in ./feedapi.module
Set default value of $form elements if present in $settings.

File

./feedapi.module, line 1493
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function _feedapi_populate_get_setting($parents, $settings) {
  if (is_array($parents) && count($parents)) {
    $this_parent = array_shift($parents);
    return _feedapi_populate_get_setting($parents, $settings[$this_parent]);
  }
  else {
    return $settings[$parents];
  }
}