diff --git a/modules/php/php.module b/modules/php/php.module index cf8513a8aeb6..e99bf1b0c35e 100644 --- a/modules/php/php.module +++ b/modules/php/php.module @@ -43,11 +43,11 @@ function php_filter_tips($delta, $format, $long = false) { $output .= '
template.php file rather than embedding it directly into a post or block.') .''. t('A basic example: Creating a "Welcome" block that greets visitors with a simple message.') .'
'; - $output .= ''. t(''; +') .''; $output .= '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:
+ $output .= '
- '. t('
 '; + $output .= '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:
print t(\'Welcome visitor! Thank you for visiting.\'); --To display the name of a registered user, use this instead:
+') .'- '. t('
 To display the name of a registered user, use this instead:
global $user; if ($user->uid) { @@ -56,7 +56,7 @@ if ($user->uid) { else { print t(\'Welcome visitor! Thank you for visiting.\'); } -') .'
'. t('Drupal.org offers some example PHP snippets, 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'))) .'
'; return $output; }