public function update_group($name, $config) {
        if (!isset($this->groups[$name])) {
            throw new coding_exception('The Moodle YUI module does not exist. You must define the moodle module config using YUI_config->add_module_config first.');
        }
        $this->groups[$name] = $config;
    }
public function update_group($name, $config) {
        if (!isset($this->groups[$name])) {
            throw new coding_exception('The Moodle YUI module does not exist. You must define the moodle module config using YUI_config->add_module_config first.');
        }
        $this->groups[$name] = $config;
    }
public function update_group ( $ name , $ config ) { if ( ! isset ( $ this -> groups [ $ name ] ) ) { throw new coding_exception ( 'The Moodle YUI module does not exist. You must define the moodle module config using YUI_config->add_module_config first.' ) ; } $ this -> groups [ $ name ] = $ config ; }
Update an existing group configuration

Note, any existing configuration for that group will be wiped out.
This includes module configuration.

@param String $name The name of the group. This must be unique and
not previously used.
@param Array $config The configuration for this group.
@return void
Update an existing group configuration