From 47f0ae5908b1382c844885c03b9b1b06e0ca2df1 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 22 Apr 2013 11:03:28 +0800 Subject: [PATCH] MDL-39264 chat: Reformat module settings form --- mod/chat/lang/en/chat.php | 2 +- mod/chat/mod_form.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/chat/lang/en/chat.php b/mod/chat/lang/en/chat.php index bd965772d24..6810429adef 100644 --- a/mod/chat/lang/en/chat.php +++ b/mod/chat/lang/en/chat.php @@ -114,7 +114,7 @@ $string['refreshuserlist'] = 'Refresh user list'; $string['removemessages'] = 'Remove all messages'; $string['repeatdaily'] = 'At the same time every day'; $string['repeatnone'] = 'No repeats - publish the specified time only'; -$string['repeattimes'] = 'Repeat sessions'; +$string['repeattimes'] = 'Repeat/publish session times'; $string['repeatweekly'] = 'At the same time every week'; $string['saidto'] = 'said to'; $string['savemessages'] = 'Save past sessions'; diff --git a/mod/chat/mod_form.php b/mod/chat/mod_form.php index 86025393207..31a5d6243a4 100644 --- a/mod/chat/mod_form.php +++ b/mod/chat/mod_form.php @@ -25,6 +25,9 @@ class mod_chat_mod_form extends moodleform_mod { $this->add_intro_editor(true, get_string('chatintro', 'chat')); + // Chat sessions. + $mform->addElement('header', 'sessionshdr', get_string('sessions', 'chat')); + $mform->addElement('date_time_selector', 'chattime', get_string('chattime', 'chat')); $options=array(); @@ -34,7 +37,6 @@ class mod_chat_mod_form extends moodleform_mod { $options[3] = get_string('repeatweekly', 'chat'); $mform->addElement('select', 'schedule', get_string('repeattimes', 'chat'), $options); - $options=array(); $options[0] = get_string('neverdeletemessages', 'chat'); $options[365] = get_string('numdays', '', 365);