Commit 5b30c344 authored by Dries's avatar Dries
Browse files

- Patch #6725 by TDobes: update block module _user() hooks.

parent 8ec1d600
......@@ -317,7 +317,7 @@ function block_admin() {
function block_user($type, $edit, &$user) {
switch ($type) {
case "edit_form":
case "edit":
$result = db_query("SELECT * FROM {blocks} WHERE custom = %d ORDER BY module, delta", 1);
while ($block = db_fetch_object($result)) {
......@@ -332,7 +332,7 @@ function block_user($type, $edit, &$user) {
}
break;
case "edit_validate":
case "validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
......
......@@ -317,7 +317,7 @@ function block_admin() {
function block_user($type, $edit, &$user) {
switch ($type) {
case "edit_form":
case "edit":
$result = db_query("SELECT * FROM {blocks} WHERE custom = %d ORDER BY module, delta", 1);
while ($block = db_fetch_object($result)) {
......@@ -332,7 +332,7 @@ function block_user($type, $edit, &$user) {
}
break;
case "edit_validate":
case "validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
......
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