You are here

function locationmap_block_save in Location Map 8.2

Same name and namespace in other branches
  1. 7.2 locationmap.module \locationmap_block_save()
  2. 7 locationmap.module \locationmap_block_save()

Implements hook_block_save().

File

./locationmap.module, line 270

Code

function locationmap_block_save($delta, $edit) {
  switch ($delta) {
    case 'image':
      variable_set('locationmap_block_type', $edit['locationmap_block_type']);
      variable_set('locationmap_block_mapheight', (int) $edit['locationmap_block_mapheight']);
      variable_set('locationmap_block_mapwidth', (int) $edit['locationmap_block_mapwidth']);
      variable_set('locationmap_block_text_top', $edit['locationmap_text_top']['value']);
      break;
  }
}