summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 25beb7172..f25331730 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -136,7 +136,7 @@ function module_rebuild_cache() {
* @return
* TRUE if the module is both installed and enabled.
*/
-function module_exist($module) {
+function module_exists($module) {
$list = module_list();
return array_key_exists($module, $list);
}
@@ -181,7 +181,7 @@ function module_enable($module) {
* The name of the module (without the .module extension).
*/
function module_disable($module) {
- if (module_exist($module)) {
+ if (module_exists($module)) {
module_load_install($module);
module_invoke($module, 'disable');
db_query("UPDATE {system} SET status = 0, throttle = 0 WHERE type = 'module' AND name = '%s'", $module);