function barcode_discover_plugins in Barcode 6.2
Same name and namespace in other branches
- 7.2 includes/barcode.plugins.inc \barcode_discover_plugins()
Builds and return a list of all plugins available in the system.
Return value
Nested array of plugins, grouped by type and
2 calls to barcode_discover_plugins()
- barcode_load_plugin in includes/
barcode.plugins.inc - Return the plugin filename containing the given encoding.
- barcode_settings in includes/
barcode.admin.inc - Menu callback to configure barcode module settings.
File
- includes/
barcode.plugins.inc, line 13 - Code to load barcode symbology plugins
Code
function barcode_discover_plugins() {
$plugins['ean'] = array(
'UPC-A' => t('UPC-A'),
'EAN-13' => t('EAN-13'),
'ISBN' => t('ISBN'),
);
$plugins['ean8'] = array(
'EAN-8' => t('EAN-8'),
);
$plugins['upce'] = array(
'UPC-E' => t('UPC-E'),
);
$plugins['s2o5'] = array(
'S2O5' => t('Standard 2 of 5'),
'I2O5' => t('Industrial 2 of 5'),
);
$plugins['i25'] = array(
'I25' => t('Interleaved 2 of 5'),
);
$plugins['postnet'] = array(
'POSTNET' => t('Postnet'),
);
$plugins['codabar'] = array(
'CODABAR' => t('Codabar'),
);
$plugins['code128'] = array(
'CODE128' => t('Code 128'),
);
$plugins['code39'] = array(
'CODE39' => t('Code 39'),
);
$plugins['code93'] = array(
'CODE93' => t('Code 93'),
);
return $plugins;
}