diff --git a/modules/block.module b/modules/block.module index 94c98f7e9629f7f0a6e36b9e739c8e71c9867e4e..50db977c8ecb8a5601e52763487e91f1ce750f7f 100644 --- a/modules/block.module +++ b/modules/block.module @@ -19,7 +19,7 @@ function block_help($section = "admin/help#block") {

PHP in admin-defined blocks

If you know how to script in PHP, Drupal gives you the power to embed any script you like inside a block. It will be executed when the page is viewed and dynamically embedded into the page. This gives you amazing flexibility and power, but of course with that comes danger and insecurity if you don't write good code. If you are not familiar with PHP, SQL or with the site engine, avoid experimenting with PHP blocks because you can corrupt your database or render your site insecure or even unusable! If you don't plan to do fancy stuff with your blocks then you're probably better off with straight HTML.

Remember that the code within each PHP block must be valid PHP code - including things like correctly terminating statements with a semicolon so that the parser won't die. It is highly recommended that you develop your blocks separately using a simple test script on top of a test database before migrating to your production environment.

-

Notes:

+

Notes:

A basic example:

You want to have a box with the title \"Welcome\" that you use to greet your visitors. The content for this box could be created by going: