]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16267 Moved and tidied help files
authormoodler <moodler>
Fri, 26 Sep 2008 03:27:54 +0000 (03:27 +0000)
committermoodler <moodler>
Fri, 26 Sep 2008 03:27:54 +0000 (03:27 +0000)
lang/en_utf8/help/forum/message_digests.html [new file with mode: 0644]
lang/en_utf8/help/forum/message_posts.html [new file with mode: 0644]
lang/en_utf8/help/message/message_instantmessage.html [new file with mode: 0644]
lang/en_utf8/help/message/moodle_errors.html [new file with mode: 0644]
lang/en_utf8/help/message/moodle_notices.html [new file with mode: 0644]
message/edit.php

diff --git a/lang/en_utf8/help/forum/message_digests.html b/lang/en_utf8/help/forum/message_digests.html
new file mode 100644 (file)
index 0000000..0af80ef
--- /dev/null
@@ -0,0 +1,3 @@
+<h1>Forum digests</h1>
+
+<p>Digests are daily collections of posts from forums you have subscribed to.</p>
diff --git a/lang/en_utf8/help/forum/message_posts.html b/lang/en_utf8/help/forum/message_posts.html
new file mode 100644 (file)
index 0000000..8492805
--- /dev/null
@@ -0,0 +1,3 @@
+<h1>Forum posts</h1>
+
+<p>These are ordinary single posts from forums you have subscribed to.</p>
diff --git a/lang/en_utf8/help/message/message_instantmessage.html b/lang/en_utf8/help/message/message_instantmessage.html
new file mode 100644 (file)
index 0000000..7effd57
--- /dev/null
@@ -0,0 +1,5 @@
+<h1>Messages from other users</h1>
+
+<p>This section configures what happens to messages that are sent to you directly from other users on this site.</p>
+
+<p>You can have configure things to happen differently when you are online or offline.</p>
diff --git a/lang/en_utf8/help/message/moodle_errors.html b/lang/en_utf8/help/message/moodle_errors.html
new file mode 100644 (file)
index 0000000..a3965d9
--- /dev/null
@@ -0,0 +1,3 @@
+<h1>Moodle errors</h1>
+
+<p>These are important errors that an administrator should know about.</p>
diff --git a/lang/en_utf8/help/message/moodle_notices.html b/lang/en_utf8/help/message/moodle_notices.html
new file mode 100644 (file)
index 0000000..2b324b1
--- /dev/null
@@ -0,0 +1,3 @@
+<h1>Moodle notices</h1>
+
+<p>These are notices that an administrator might be interested in seeing.</p>
index 8a52ea6449b942e78b54c58791221efa7dfc70e8..a339fc9cea38bc25c1367f0918e65b1ca41e1665 100644 (file)
 
     foreach ( $providers as $providerid => $provider){
         $providername = get_string('messageprovider:'.$provider->name, $provider->component);
-        $helpbtn = helpbutton(str_replace('/', '_', $provider->component).'_'.$provider->name, $providername, "messaging", true, false, '', true);
+
+    /// TODO XXX: This is only a quick hack ... helpfile locations should be provided as part of the provider definition
+        if ($provider->component == 'moodle') {
+            $helpbtn = helpbutton('moodle_'.$provider->name, $providername, 'message', true, false, '', true);
+        } else {
+            $helpbtn = helpbutton('message_'.$provider->name, $providername, basename($provider->component), true, false, '', true);
+        }
+
         echo '<tr><th align="right">'.$providername.$helpbtn.'</th><td colspan="'.$number_procs.'"></td></tr>'."\n";
         foreach (array('loggedin', 'loggedoff') as $state){
             $state_res = get_string($state, 'message');