You are here

function barcodes_block_save in Barcodes 7

Implements hook_block_save().

File

./barcodes.module, line 120
Contains barcodes.module.

Code

function barcodes_block_save($delta = '', $edit = array()) {
  if ($delta == 'barcode') {
    variable_set('barcodes_value', $edit['value']);
    variable_set('barcodes_type', $edit['type']);
    variable_set('barcodes_color', $edit['color']);
    variable_set('barcodes_height', $edit['height']);
    variable_set('barcodes_width', $edit['width']);
    variable_set('barcodes_padding_top', $edit['padding_top']);
    variable_set('barcodes_padding_right', $edit['padding_right']);
    variable_set('barcodes_padding_bottom', $edit['padding_bottom']);
    variable_set('barcodes_padding_left', $edit['padding_left']);
    variable_set('barcodes_show_value', $edit['show_value']);
  }
}