Commit 30bae36a authored by Dries's avatar Dries

- Bugfix: the block module's help was not being displayed. Patch by Gabor.

parent 6636aac6
<?php
// $Id$
function block_help($section = "admin/system/block/help") {
function block_help($section = "admin/block/help") {
$output = "";
switch ($section) {
case 'admin/system/block/help':
case 'admin/block/help':
$output .= "<p>Blocks are the boxes visible in the sidebar(s) of your web site. These are usually generated automatically by modules (e.g. recent forum topics), but you can also create your own blocks using either static HTML or dynamic PHP content.</p>";
$output .= "<p>The sidebar each block appears in depends on both which theme you're using (some are left-only, some right, some both), and on the settings in block management.</p><p>Whether a block is visible in the first place depends on three things:</p><ul><li>It must have its \"enabled\" box checked in block management.</li><li>If it has its \"custom\" box checked in block management, the user must have chosen to display it in their user preferences.</li><li>If the \"path\" field in block management is set, the visitor must be on a page that matches the path specification (more on this later).</li></ul>";
$output .= "<p>The block management screen also lets you specify the vertical sort-order of the blocks within a sidebar. You do this by assigning a <b>weight</b> to each block. Lighter blocks (smaller weight) \"float up\" towards the top of the sidebar. Heavier ones \"sink down\" towards the bottom of it. Once you've positioned things just so, you can preview what the layout will look like in different types of themes by clicking the preview placement link in the menu to the left.</p>";
......
<?php
// $Id$
function block_help($section = "admin/system/block/help") {
function block_help($section = "admin/block/help") {
$output = "";
switch ($section) {
case 'admin/system/block/help':
case 'admin/block/help':
$output .= "<p>Blocks are the boxes visible in the sidebar(s) of your web site. These are usually generated automatically by modules (e.g. recent forum topics), but you can also create your own blocks using either static HTML or dynamic PHP content.</p>";
$output .= "<p>The sidebar each block appears in depends on both which theme you're using (some are left-only, some right, some both), and on the settings in block management.</p><p>Whether a block is visible in the first place depends on three things:</p><ul><li>It must have its \"enabled\" box checked in block management.</li><li>If it has its \"custom\" box checked in block management, the user must have chosen to display it in their user preferences.</li><li>If the \"path\" field in block management is set, the visitor must be on a page that matches the path specification (more on this later).</li></ul>";
$output .= "<p>The block management screen also lets you specify the vertical sort-order of the blocks within a sidebar. You do this by assigning a <b>weight</b> to each block. Lighter blocks (smaller weight) \"float up\" towards the top of the sidebar. Heavier ones \"sink down\" towards the bottom of it. Once you've positioned things just so, you can preview what the layout will look like in different types of themes by clicking the preview placement link in the menu to the left.</p>";
......
......@@ -47,7 +47,7 @@ function help_admin($section = "admin/help") {
case 'admin/help':
foreach (module_list() as $name) {
if (module_hook($name, "help")) {
$temp = module_invoke($name, "help", "admin/".$name."/help");
$temp = module_invoke($name, "help", "admin/$name/help");
if (!empty($temp)) {
$links[] = l($name, "admin/help#$name");
$output .= "<h2><a id=\"$name\">". ucfirst($name) ." module</a></h2>";
......
......@@ -47,7 +47,7 @@ function help_admin($section = "admin/help") {
case 'admin/help':
foreach (module_list() as $name) {
if (module_hook($name, "help")) {
$temp = module_invoke($name, "help", "admin/".$name."/help");
$temp = module_invoke($name, "help", "admin/$name/help");
if (!empty($temp)) {
$links[] = l($name, "admin/help#$name");
$output .= "<h2><a id=\"$name\">". ucfirst($name) ." module</a></h2>";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment