Moodleの新規ユーザ登録画面にいくと、このようになっています。
このように都道府県や国ができます。
都道府県と国を削除したい場合どうするか。
login/signup_form.php
下記の部分をまるっと削除、またはコメントアウトする。
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="20"'); $mform->setType('city', PARAM_TEXT); if (!empty($CFG->defaultcity)) { $mform->setDefault('city', $CFG->defaultcity); } $country = get_string_manager()->get_list_of_countries(); $default_country[''] = get_string('selectacountry'); $country = array_merge($default_country, $country); //$mform->addElement('select', 'country', get_string('country'), $country); if( !empty($CFG->country) ){ $mform->setDefault('country', $CFG->country); }else{ $mform->setDefault('country', ''); }
ただし、自己責任でお願いします。
コメント