The default taxonomy setting does not stick in the config drop list after the setting has been updated, the default variable_get value argument - '_dart_taxonomy_callback_tid' - is always displayed, though the saved value is set properly in the variables table. This is simply due to a minor typo in the in the name value in the variable_get() call for the #default_value :
line 72 (dart_taxonomy.module)
$form['taxonomy_settings']['dart_taxonomy_default_callback'] = array(
'#type' => 'select',
'#options' => _dart_taxonomy_callbacks(),
'#title' => t('Default taxonomy value'),
'#default_value' => variable_get('dart_taxonomy_default_value_callback', '_dart_taxonomy_callback_tid'),
'#required' => TRUE,
'#description' => t('How should the taxonomy terms be displayed when included in a DART tag.'),
);
break;
'dart_taxonomy_default_value_callback' should be 'dart_taxonomy_default_callback'
I would post this as a patch, but I've never posted a patch before and am not sure how to roll one out (I am behind on a deadline tonight, so I don't have time to mess with it right now :-)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | dart-tax.patch | 842 bytes | bleen |
Comments
Comment #1
bleen commentedI committed the following patch.
Thanks davmorr