Commit 81ed7e49 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#198664 by mooffie: blockquote was misused in the php module help example, use a list instead

parent 7b38b291
......@@ -43,11 +43,11 @@ function php_filter_tips($delta, $format, $long = false) {
$output .= '<li>'. t('Consider including your custom PHP code within a site-specific module or <code>template.php</code> file rather than embedding it directly into a post or block.') .'</li>';
$output .= '<li>'. t('Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.') .'</li></ul>';
$output .= '<p>'. t('A basic example: <em>Creating a "Welcome" block that greets visitors with a simple message.</em>') .'</p>';
$output .= '<blockquote>'. t('<p>Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:</p>
$output .= '<ul><li>'. t('<p>Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:</p>
<pre>
print t(\'Welcome visitor! Thank you for visiting.\');
</pre>
<p>To display the name of a registered user, use this instead:</p>
</pre>') .'</li>';
$output .= '<li>'. t('<p>To display the name of a registered user, use this instead:</p>
<pre>
global $user;
if ($user->uid) {
......@@ -56,7 +56,7 @@ function php_filter_tips($delta, $format, $long = false) {
else {
print t(\'Welcome visitor! Thank you for visiting.\');
}
</pre>') .'</blockquote>';
</pre>') .'</li></ul>';
$output .= '<p>'. t('<a href="@drupal">Drupal.org</a> offers <a href="@php-snippets">some example PHP snippets</a>, or you can create your own with some PHP experience and knowledge of the Drupal system.', array('@drupal' => url('http://drupal.org'), '@php-snippets' => url('http://drupal.org/handbook/customization/php-snippets'))) .'</p>';
return $output;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment