Closed (fixed)
Project:
Textile
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2007 at 17:14 UTC
Updated:
15 Mar 2007 at 18:16 UTC
The original code in the textile_filter hook uses single-quotes as the form array index, but the key has a variable in it, so the variable is not expanded. Simply changing the single- to double-quotes fixes this.
Instead of
$form['textile_settings']['textile_tags_$format'] = array(
'#type' => 'checkbox',
'#title' => t('Use tags'),
'#default_value' => variable_get("textile_tags_$format", 0),
'#description' => t('If enabled, only text between [textile] and optional [/textile] tags will be processed. Otherwise, all text will be processed as Textile markup.')
);
it has to be this
$form['textile_settings']['textile_tags_'.$format] = array(
or this
$form['textile_settings']["textile_tags_$format"] = array(
Comments
Comment #1
jhriggs commentedFixed in 5.x-1.1. Thanks!
Comment #2
(not verified) commented