From b4ceaac37520984f88b1a698dc52b80b9bc481c9 Mon Sep 17 00:00:00 2001
From: Dries Buytaert
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.
Whether a block is visible in the first place depends on three things:
The block management screen also lets you specify the vertical sort-order of the blocks within a sidebar. You do this by assigning a weight 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.
"; @@ -162,8 +162,8 @@ function block_admin_display() { foreach ($blocks as $block) { if ($block["module"] == "block") { - $edit = l(t("edit"), "admin/block/edit/". $block["delta"]); - $delete = l(t("delete"), "admin/block/delete/". $block["delta"]); + $edit = l(t("edit"), "admin/system/block/edit/". $block["delta"]); + $delete = l(t("delete"), "admin/system/block/delete/". $block["delta"]); } else { $edit = ""; @@ -284,7 +284,7 @@ function block_admin() { if (user_access("administer blocks")) { if (empty($op)) { - $op = arg(2); + $op = arg(3); } switch ($op) { @@ -295,10 +295,10 @@ function block_admin() { $output = block_box_form(); break; case "edit": - $output = block_box_form(block_box_get(arg(3))); + $output = block_box_form(block_box_get(arg(4))); break; case "delete": - $output = status(block_box_delete(arg(3))); + $output = status(block_box_delete(arg(4))); cache_clear_all(); $output .= block_admin_display(); break; -- cgit v1.2.3