How to disable Forum module in Moodle 1.9


Why?
Moodle don't allow to disable Forum module by configuration.


How?
It makes Forum disable by changing the value stored in Moodle DB(My SQL).



  1. Access Moodle DB by moodel DB user
  2. sysadmin@linux-rsgv:~> mysql -u moodleuser moodle -p
    Enter password: 
    
  3. Change the value from 1 to 0 for Visible column in modules table.
  4. mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       1 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> update mdl_modules set visible='0' where name='forum';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    
    mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       0 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> commit;
    Query OK, 0 rows affected (0.00 sec)
    
You'll see the forum module module is disable in your site.


Of cause this modification isn't recommended by Moodle.
Please take responsibility for your action. :-)

1 comment: