Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: chx commentedComment #2
chx CreditAttribution: chx commentedone hunk too more.
Comment #3
Steven CreditAttribution: 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 CreditAttribution: Steven commentedCommitted to HEAD, works as advertised. Good job.
Comment #9
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedapplied
Comment #10
(not verified) CreditAttribution: commented