<?php  // $Id$
    if (empty($CFG->workshop_initialdisable)) {
        if (!count_records('workshop')) {
            set_field('modules', 'visible', 0, 'name', 'workshop');  // Disable it by default
            set_config('workshop_initialdisable', 1);
        }
    }

?>

Disable workshop by default in a new install MDL-13100
Disable workshop by default in a new install   MDL-13100
