From 86552cb4b6a83dc218ea0164ddb7c9670f224ddb Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 11 May 2002 16:21:48 +0000 Subject: - changed block, module and theme config pages to use checkboxes. - coding style clean ups. - fixed taxonomy causing errors. --- modules/block.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index 60ea18e96..b74d2c2a1 100644 --- a/modules/block.module +++ b/modules/block.module @@ -61,7 +61,7 @@ function block_block() { } function block_admin_save($edit) { - foreach ($edit as $key=>$value) { + foreach ($edit as $key => $value) { db_query("UPDATE blocks SET region = '%s', status = '%d', custom = '%d', path = '%s', weight = '%d' WHERE name = '%s'", $value["region"], $value["status"], $value["custom"], $value["path"], $value["weight"], $key); } } @@ -71,7 +71,7 @@ function block_admin_display() { // Generate output: $output = "\n"; - $output .= "\n"; + $output .= "\n"; while ($block = db_fetch_object($result)) { $weights = array(0 => 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); @@ -80,8 +80,8 @@ function block_admin_display() { //$output .= ''; $output .= ""; $output .= ''; - $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; -- cgit v1.2.3
blockmodulestatuscustomweightregionpathoperations
blockmoduleenabledcustomweightregionpathoperations
'. la($block->name, array("mod" => "block", "op" => "view", "id" => $block->delta), t("View the block details")) .'$block->name'. (module_hook($block->module, "admin") ? la($block->module, array("mod" => $block->module), "Administer module") : $block->module) .''. form_select(NULL, "$block->name][status", $block->status, array("disabled", "enabled")) .''. form_select(NULL, "$block->name][custom", $block->custom, array("disabled", "enabled")) .''. form_checkbox(NULL, "$block->name][status", 1, $block->status) .''. form_checkbox(NULL, "$block->name][custom", 1, $block->custom) .''. form_select(NULL, "$block->name][weight", $block->weight, $weights) .''. form_select(NULL, "$block->name][region", $block->region, array("left", "right")) .''. form_textfield(NULL, "$block->name][path", $block->path, 10, 255) .'