You are here

function yamaps_block_save in Yandex.Maps 7

Implements hook_block_save().

File

inc/yamaps.block.inc, line 377
Yandex Maps blocks configuration.

Code

function yamaps_block_save($delta = YAMAPS_DEFAULT_BLOCK_DELTA, $edit = []) {
  variable_set($delta . '_block_controls', $edit[$delta . '_block_controls']);
  variable_set($delta . '_block_traffic', $edit[$delta . '_block_traffic']);
  variable_set($delta . '_block_clusterer', $edit[$delta . '_block_clusterer']);
  variable_set($delta . '_block_auto_zoom', $edit[$delta . '_block_auto_zoom']);
  variable_set($delta . '_block_behaviors', $edit[$delta . '_block_behaviors']);
  variable_set($delta . '_block_width', $edit[$delta . '_block_width']);
  variable_set($delta . '_block_height', $edit[$delta . '_block_height']);
  variable_set($delta . '_block_coords', $edit['coords']);
  variable_set($delta . '_block_type', $edit['type']);
  variable_set($delta . '_block_placemarks', $edit['placemarks']);
  variable_set($delta . '_block_lines', $edit['lines']);
  variable_set($delta . '_block_polygons', $edit['polygons']);
  variable_set($delta . '_block_routes', $edit['routes']);
  variable_set($delta . '_block_enable_placemarks', $edit[$delta . '_block_enable_placemarks']);
  variable_set($delta . '_block_enable_lines', $edit[$delta . '_block_enable_lines']);
  variable_set($delta . '_block_enable_polygons', $edit[$delta . '_block_enable_polygons']);
  variable_set($delta . '_block_enable_routes', $edit[$delta . '_block_enable_routes']);
  variable_set($delta . '_block_display_options', $edit[$delta . '_block_display_options']);
}