diff options
Diffstat (limited to 'modules/block.module')
-rw-r--r-- | modules/block.module | 6 |
1 files changed, 3 insertions, 3 deletions
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 <b>active</b> 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 <a href=\"%overview\">block management</a>. The title is used when displaying the block. The description is used in the \"block\" column on the <a href=\"%overview\">block management</a> page. If you are going to place PHP code in the block, and you have <b>create PHP content</b> permission (see <a href=\"%permission\">user management >> user permissions</a>) you <B>must</b> 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 <a href=\"%overview\">block management</a>. The title is used when displaying the block. The description is used in the \"block\" column on the <a href=\"%overview\">block management</a> page. If you are going to place PHP code in the block, and you have <b>create php content</b> permission (see <a href=\"%permission\">user management >> user permissions</a>) you <B>must</b> 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 +?> |