function yamaps_wrap_items in Yandex.Maps 7
Wraps each element in array with specified tag and implodes array.
Parameters
array $arr: Item that need to be wrapped.
string $wrap_start: Wrap start string.
string $wrap_end: Wrap end string.
Return value
string String with wrapped elements.
1 call to yamaps_wrap_items()
- yamaps_help in ./
yamaps.module - Implements hook_help().
File
- ./
yamaps.functions.inc, line 102 - Yandex Maps functions used across all components of the module.
Code
function yamaps_wrap_items(array $arr, $wrap_start, $wrap_end) {
$items = [];
foreach ($arr as $item) {
$items[] = $wrap_start . $item . $wrap_end;
}
return implode('', $items);
}