Index: modules/php/php.module =================================================================== RCS file: /cvs/drupal/drupal/modules/php/php.module,v retrieving revision 1.16 diff -u -r1.16 php.module --- modules/php/php.module 13 Aug 2009 19:53:20 -0000 1.16 +++ modules/php/php.module 13 Aug 2009 21:26:29 -0000 @@ -78,33 +78,29 @@ } /** - * Implement hook_filter_tips(). + * Tips callback for php filter. */ -function php_filter_tips($delta, $format, $long = FALSE) { +function _php_filter_tips($format, $long = FALSE) { global $base_url; - if ($delta == 0) { - switch ($long) { - case 0: - return t('You may post PHP code. You should include <?php ?> tags.'); - case 1: - $output = '

' . t('Using custom PHP code') . '

'; - $output .= '

' . t('Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.') . '

'; - $output .= '

' . t('If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.') . '

'; - $output .= '

' . t('Notes:') . '

'; - $output .= ''; - $output .= '

' . t('A basic example: Creating a "Welcome" block that greets visitors with a simple message.') . '

'; - $output .= '