summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/includes/module.inc b/includes/module.inc
index d908ceb25..7a248d236 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -69,25 +69,4 @@ function module_hook($name, $hook) {
return function_exists($name ."_". $hook);
}
-// rehash module-exported blocks:
-function module_rehash_blocks($name) {
- db_query("UPDATE blocks SET remove = '1' WHERE module = '$name'");
-
- if ($blocks = module_invoke($name, "block")) {
- foreach ($blocks as $delta => $block) {
- foreach ($block as $item => $data) {
- $block[$item] = addslashes($data);
- }
- if (!db_fetch_object(db_query("SELECT * FROM blocks WHERE module = '$name' AND name = '$block[info]'"))) {
- db_query("INSERT INTO blocks (name, module, delta) VALUES ('$block[info]', '$name', '$delta')");
- }
- else {
- db_query("UPDATE blocks SET delta = '$delta', remove = '0' WHERE module = '$name' AND name = '$block[info]'");
- }
- }
- }
-
- db_query("DELETE FROM blocks WHERE module = '$name' AND remove = '1'");
-}
-
?> \ No newline at end of file