You are here

function _leaflet_get_form_input_path in Leaflet 7

Helper function to find the correct values for input validation.

3 calls to _leaflet_get_form_input_path()
leaflet_initial_zoom_validate in ./leaflet.formatters.inc
Validation callback for the initial zoom level.
leaflet_max_zoom_validate in ./leaflet.formatters.inc
Validation callback for max zoom level.
leaflet_min_zoom_validate in ./leaflet.formatters.inc
Validation callback for min zoom level.

File

./leaflet.formatters.inc, line 963
Leaflet field formatter functions.

Code

function _leaflet_get_form_input_path($path, $path_items) {
  array_pop($path_items);
  while ($item = array_shift($path_items)) {
    $path = $path[$item];
  }
  return $path;
}