Commit 2c165d0e authored by Dries's avatar Dries
Browse files

- Applied Axel's patch to sort blocks by weight.
parent 9347252f
...@@ -72,7 +72,7 @@ function block_admin_save($edit) { ...@@ -72,7 +72,7 @@ function block_admin_save($edit) {
} }
function block_admin_display() { function block_admin_display() {
$result = db_query("SELECT * FROM blocks ORDER BY module"); $result = db_query("SELECT * FROM blocks ORDER BY weight");
// Generate output: // Generate output:
$output = "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n"; $output = "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
......
...@@ -72,7 +72,7 @@ function block_admin_save($edit) { ...@@ -72,7 +72,7 @@ function block_admin_save($edit) {
} }
function block_admin_display() { function block_admin_display() {
$result = db_query("SELECT * FROM blocks ORDER BY module"); $result = db_query("SELECT * FROM blocks ORDER BY weight");
// Generate output: // Generate output:
$output = "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n"; $output = "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
......
Supports Markdown
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