summaryrefslogtreecommitdiff
path: root/modules/structure.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structure.module')
-rw-r--r--modules/structure.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/structure.module b/modules/structure.module
index 2f5138431..f51bc7f5e 100644
--- a/modules/structure.module
+++ b/modules/structure.module
@@ -1,10 +1,8 @@
<?php
-$module = array("admin" => "structure_admin");
-
-function content_types($name, $module) {
+function content_types($name) {
global $types;
- if ($module[type]) $types[$name] = $name;
+ if (function_exists($name ."_status")) $types[$name] = $name;
}
function category_form($edit = array()) {