General developer forum

Hiding an activity through the database

 
Picture of Chris Pratt
Hiding an activity through the database
 

Hi all

I'm looking to hide some activities but by the back-end in the database. Anyone know where I should be looking?

Thanks in advance! smile

 
Average of ratings: -
Picture of Mark Johnson
Re: Hiding an activity through the database
Core developersParticularly helpful MoodlersPlugin developers

The course_modules table has a "visible" field, if you set that to 0 the activity should be hidden from students.  However, this sort of data is cached so if you edit directly in the database you'll also need to clear the cache for it to be reflected to users.

 
Average of ratings: Useful (2)
Picture of Chris Pratt
Re: Hiding an activity through the database
 

Thanks very much for that Mark, worked a treat!

 
Average of ratings: -