The textile_filter settings needs to change from single- to double-quotes

jhm - March 1, 2007 - 17:14
Project:Textile
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:jhriggs
Status:closed
Description

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(

#1

jhriggs - March 1, 2007 - 18:15
Assigned to:Anonymous» jhriggs
Status:needs review» fixed

Fixed in 5.x-1.1. Thanks!

#2

Anonymous - March 15, 2007 - 18:16
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.