From 1c38cd909918550882e96e5cc30664321623ed63 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 24 Jun 2003 15:55:22 +0000 Subject: - Bugfix: renamed "create PHP content" to "create php content". Reported by Simon, patch by Gerhard. - Improvement: synchronized the import module help with the version on drupal.org. --- modules/block.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index d76731657..e2da7eba5 100644 --- a/modules/block.module +++ b/modules/block.module @@ -43,7 +43,7 @@ function block_perm() { function block_link($type) { if ($type == "admin" && user_access("administer blocks")) { $help["block"] = t("Blocks are the boxes visible in the side bars on the left- and right-hand side of the web site, depending on the choosen theme. They are created by active Drupal modules. In order to view a block it must be enabled. You can assign the block's placement by giving it a region and a weight. The region specifies which side of the page the block is on, and the weight sorts blocks within a region. Lighter (smaller weight value) blocks \"float up\" towards the top of the page. The path setting is a mask which lets you define on which pages you want the specific block to be shown. The custom checkbox lets your users hide the block from their account setting page. You can also create your own blocks, where you specify the content of the block rather than it being generated by a module (you can even use PHP in these). You can create one of these by clicking the %createblock link in the menu to the left. Edit and delete links will become active below for these customized blocks.", array("%createblock" => l(t("create new block"), "admin/block/add"))); - $help["create"] = t("Here you can create a custom content block. Once you have created this block you must make it active, and give it a place on the page using block management. The title is used when displaying the block. The description is used in the \"block\" column on the block management page. If you are going to place PHP code in the block, and you have create PHP content permission (see user management >> user permissions) you must change the type to PHP to make your code active.", array("%overview" => url("admin/block"), "%permission" => url("admin/user/permission"))); + $help["create"] = t("Here you can create a custom content block. Once you have created this block you must make it active, and give it a place on the page using block management. The title is used when displaying the block. The description is used in the \"block\" column on the block management page. If you are going to place PHP code in the block, and you have create php content permission (see user management >> user permissions) you must change the type to PHP to make your code active.", array("%overview" => url("admin/block"), "%permission" => url("admin/user/permission"))); $help["preview"] = t("This page helps show you the placement of your blocks in different themes. The numbers are the weight of each block, which is used to sort them within the sidebars."); menu("admin/block", "block management", "block_admin", $help["block"], 3); @@ -233,7 +233,7 @@ function block_box_form($edit = array()) { } function block_box_save($edit) { - if (!user_access("create PHP content")) { + if (!user_access("create php content")) { $edit["type"] = 0; } @@ -330,4 +330,4 @@ function block_user($type, &$edit, &$user) { } } -?> \ No newline at end of file +?> -- cgit v1.2.3