Commit e5afef91 authored by sanduhrs's avatar sanduhrs Committed by sanduhrs
Browse files

Issue #2881750 by sanduhrs: Fix token module non-dependency

parent a224afa9
......@@ -34,10 +34,12 @@ function barcodes_block_configure($delta = '') {
'#title' => t('Value'),
'#description' => t('The Barcode value.'),
'#default_value' => variable_get('barcodes_value', ''),
'#element_validate' => array('token_element_validate'),
'#token_types' => array(),
];
if (module_exists('token')) {
$form['settings']['value'] = [
'#element_validate' => array('token_element_validate'),
'#token_types' => array(),
];
$form['settings']['token_help'] = [
'#theme' => 'token_tree_link',
'#token_types' => [],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment