diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-06 18:11:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-06 18:11:41 +0000 |
commit | 7d4f8c7ac6f596324dd8f35791df33aa3d9c532b (patch) | |
tree | e30383eb0288925def1cc11f6ea53aea25cb7dbe /modules/php | |
parent | 89ac9876d08935ab9e644dac2e051925197e4e43 (diff) | |
download | brdo-7d4f8c7ac6f596324dd8f35791df33aa3d9c532b.tar.gz brdo-7d4f8c7ac6f596324dd8f35791df33aa3d9c532b.tar.bz2 |
#635282 by jhodgdon and arianek: Update RDF, DBlog, and PHP module to new help standard.
Diffstat (limited to 'modules/php')
-rw-r--r-- | modules/php/php.module | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/php/php.module b/modules/php/php.module index eb7a1020e..74538a424 100644 --- a/modules/php/php.module +++ b/modules/php/php.module @@ -12,10 +12,14 @@ function php_help($path, $arg) { switch ($path) { case 'admin/help#php': - $output = '<p>' . t('The PHP filter adds the ability to include PHP code in posts. PHP is a general-purpose scripting language widely-used for web development; the content management system used by this website has been developed using PHP.') . '</p>'; - $output .= '<p>' . t('Through the PHP filter, users with the proper permission may include custom PHP code within a page of the site. While this is a powerful and flexible feature if used by a trusted user with PHP experience, it is a significant and dangerous security risk in the hands of a malicious user. Even a trusted user may accidentally compromise the site by entering malformed or incorrect PHP code. Only the most trusted users should be granted permission to use the PHP filter, and all PHP code added through the PHP filter should be carefully examined before use.') . '</p>'; - $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>'; - $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@php">PHP module</a>.', array('@php' => 'http://drupal.org/handbook/modules/php/')) . '</p>'; + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('The PHP filter module adds a PHP filter to your site, for use with <a href="@filter">text input formats</a>. This filter adds the ability to execute PHP code in any text field that uses a text format (such as the body of a node or the text of a comment). <a href="@php-net">PHP</a> is a general-purpose scripting language widely-used for web development, and is the language with which Drupal has been developed. For more information, see the online handbook entry for the <a href="@php">PHP filter module</a>.', array('@filter' => url('admin/help/filter'), '@php-net' => 'http://www.php.net', '@php' => 'http://drupal.org/handbook/modules/php/')) . '</p>'; + $output .= '<h3>' . t('Uses') . '</h3>'; + $output .= '<dl>'; + $output .= '<dt>' . t('Enabling execution of PHP in text fields') . '</dt>'; + $output .= '<dd>' . t('The PHP filter module allows users with the proper permissions to include custom PHP code that will get executed when pages of your site are processed. While this is a powerful and flexible feature if used by a trusted user with PHP experience, it is a significant and dangerous security risk in the hands of a malicious or inexperienced user. Even a trusted user may accidentally compromise the site by entering malformed or incorrect PHP code. Only the most trusted users should be granted permission to use the PHP filter, and all PHP code added through the PHP filter should be carefully examined before use. <a href="@php-snippets">Example PHP snippets</a> can be found on Drupal.org.', array('@php-snippets' => url('http://drupal.org/handbook/customization/php-snippets'))) . '</dd>'; + $output .= '</dl>'; return $output; } } |