function barcode_get_settings in Barcode 6.2
Same name and namespace in other branches
- 7.2 barcode.module \barcode_get_settings()
The barcode settings.
2 calls to barcode_get_settings()
- barcode_settings in includes/
barcode.admin.inc - Menu callback to configure barcode module settings.
- theme_barcode_image in ./
barcode.module - Theme function for the barcode image.
File
- ./
barcode.module, line 56
Code
function barcode_get_settings() {
$barcode['default_path'] = variable_get('barcode_default_path', 'barcodes');
$barcode['encoding'] = variable_get('barcode_encoding', 'EAN-13');
$barcode['height'] = variable_get('barcode_height', 30);
$barcode['scale'] = variable_get('barcode_scale', 2.0);
$barcode['bgcolor'] = variable_get('barcode_bgcolor', '#FFFFFF');
$barcode['barcolor'] = variable_get('barcode_barcolor', '#000000');
$barcode['font'] = variable_get('barcode_font', drupal_get_path('module', 'barcode') . "/fonts/liberation/LiberationSans-Bold.ttf");
$barcode['image_format'] = variable_get('barcode_image_format', 'png');
return $barcode;
}