public function get_defaultsetting() {
        global $CFG;

        if (during_initial_install()) {
            return null;
        }
        $result = array();
        foreach($this->types as $archetype) {
            if ($caproles = get_archetype_roles($archetype)) {
                foreach ($caproles as $caprole) {
                    $result[$caprole->id] = 1;
                }
            }
        }
        return $result;
    }
public function get_defaultsetting() {
        global $CFG;

        if (during_initial_install()) {
            return null;
        }
        $result = array();
        foreach($this->types as $archetype) {
            if ($caproles = get_archetype_roles($archetype)) {
                foreach ($caproles as $caprole) {
                    $result[$caprole->id] = 1;
                }
            }
        }
        return $result;
    }
public function get_defaultsetting ( ) { global $ CFG ; if ( during_initial_install ( ) ) { return null ; } $ result = array ( ) ; foreach ( $ this -> types as $ archetype ) { if ( $ caproles = get_archetype_roles ( $ archetype ) ) { foreach ( $ caproles as $ caprole ) { $ result [ $ caprole -> id ] = 1 ; } } } return $ result ; }
Return the default setting for this control

@return array Array of default settings
Return the default setting for this control