Creating a node with php input and editing it like below
let 'hello2' be displayed also on teasers on node listing pages.
(I had to separate minus from 'break' to let drupal.org post this)
hello
< !-- break -- >
<?php
print 'hello2';
?>
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | break_php_4.patch | 1.11 KB | johnalbin |
| #6 | break_php_3.patch | 1.08 KB | johnalbin |
| #5 | break_php_2.patch | 893 bytes | johnalbin |
| #4 | break_php_1.patch | 893 bytes | johnalbin |
| #2 | break_php_0.patch | 679 bytes | chx |
Comments
Comment #1
chx commentedComment #2
chx commentedone hunk too more.
Comment #3
Steven commentedActually, what we /should/ do for PHP code is to use the break tag if it's there, but do no automatic splitting otherwise (because that is surely to result in problems).
Comment #4
johnalbinTaking Steven's advice, we get... (for 4.7)
Comment #5
johnalbinAnd... (for 5.x-dev)
Comment #6
johnalbinNew patch for 4.7.x-dev undoes (now unneeded) code added in http://drupal.org/node/80989
Comment #7
johnalbinNew patch for 5.x-dev undoes (now unneeded) code added in http://drupal.org/node/80989
Comment #8
Steven commentedCommitted to HEAD, works as advertised. Good job.
Comment #9
killes@www.drop.org commentedapplied
Comment #10
(not verified) commented