? modules/syndication Index: modules/php/php.module =================================================================== RCS file: /cvs/drupal/drupal/modules/php/php.module,v retrieving revision 1.11 diff -u -p -r1.11 php.module --- modules/php/php.module 19 Sep 2008 07:53:59 -0000 1.11 +++ modules/php/php.module 11 Oct 2008 15:06:11 -0000 @@ -48,16 +48,16 @@ function php_filter_tips($delta, $format
print t(\'Welcome visitor! Thank you for visiting.\');') . ''; - $output .= '
To display the name of a registered user, use this instead:
+ $output .= 'To display the name of a registered user, use this instead:
-global $user;
-if ($user->uid) {
- print t(\'Welcome @name! Thank you for visiting.\', array(\'@name\' => $user->name));
+global \$user;
+if (\$user->uid) {
+ print t('Welcome @name! Thank you for visiting.', array('@name' => \$user->name));
}
else {
- print t(\'Welcome visitor! Thank you for visiting.\');
+ 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; }