summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-27 07:57:51 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-27 07:57:51 -0700
commit514915438b91f44cab1682ee7495e2ef43aeeab1 (patch)
tree814cad452cb96a6d451ce46426cfaa992972e552
parent0c6840dea28f9bd5d3bc15704708e51ed60aded9 (diff)
Add a flag in the module.info (no_module_admin) to indicate that this module shouldn't be managed by the default module administration screen. This module will always be locked on that screen.
-rw-r--r--modules/gallery/helpers/module.php2
-rw-r--r--modules/user/module.info5
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index 27bc3784..da334370 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -98,7 +98,7 @@ class module_Core {
$m->active = self::is_active($module_name);
$m->code_version = $m->version;
$m->version = self::get_version($module_name);
- $m->locked = false;
+ $m->locked = !empty($m->no_module_admin);
}
// Lock certain modules
diff --git a/modules/user/module.info b/modules/user/module.info
index 8a9af407..36a2179a 100644
--- a/modules/user/module.info
+++ b/modules/user/module.info
@@ -1,3 +1,6 @@
name = "Users and Groups"
-description = "Provides user and group management"
+description = "Gallery 3 user and group management"
version = 1
+
+; Don't show this module on the module administration screen
+no_module_admin = 1