Closed (duplicate)
Project:
Drupal.org site moderators
Component:
Other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2012 at 10:17 UTC
Updated:
27 Feb 2013 at 15:13 UTC
Example:
This doesn't work:
// this is PHP comment
// @todo: http://drupal.org/node/1371968
unset($form['metatags']);
The same in code tag:
// this is PHP comment
// @todo: http://drupal.org/node/1371968
unset($form['metatags']);
This works:
// this is PHP comment
// @todo: http://drupal.org/node/1371968
The same in code tag:
// this is PHP comment
// @todo: http://drupal.org/node/1371968
Issue where it happened:
#1644554: Wizard shows other module fieldsets on every step
Comments
Comment #1
kenorb commentedComment #2
kingandyI think the problem here is the firing sequence - the PHP filter is firing after the URL-to-A filter, so is deconstructing the HTML. IMO the input filters should be reordered so the link is not turned into a link until it's already been processed by the PHP formatter.
That said, it's only breaking the formatting because the URL-to-A filter is incorrectly considering linebreaks to be part of the link. See what happens if add a space after the link:
It's still undesirable (should be an actual link or not linkified) but at least it's not breaking the colour formatting.
Comment #3
avpadernoThere is already a report about this.
Comment #4
geerlingguy commentedDuplicate of #1644662: Links in comment as PHP code breaking the syntax.
Comment #5
kingandy(actually #1310256: HTML filter runs after code filter, so URLs get linkified even if in code on d.o)
Comment #5.0
kingandyadded link