Needs review
Project:
Textmate
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2013 at 22:36 UTC
Updated:
15 Apr 2013 at 22:36 UTC
$form+tab allows Form API elements to be added. If "markup" is selected the following code is added:
$form['value'] = array(
'#value' => 'value',
'#prefix' => '<div>',
'#suffix' => '</div>',
);
This is incorrect. It should be
$form['value'] = array(
'#markup' => 'value',
'#prefix' => '<div>',
'#suffix' => '</div>',
);
Note '#markup' instead of '#value'. This changed in Drupal 7. Compare with Drupal 6.
Also the typed value does not replace value in $form['value'] correctly.
Pull request 34 on GitHub fixes this.