]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16267 added helpbutton for all the message providers
authorlfrodrigues <lfrodrigues>
Thu, 25 Sep 2008 17:10:01 +0000 (17:10 +0000)
committerlfrodrigues <lfrodrigues>
Thu, 25 Sep 2008 17:10:01 +0000 (17:10 +0000)
message/edit.php

index 923ea71d26e0289d8e47de2c0e50a2d827254304..1e159f47f1b909a01462ada5e6fe2eabc7260af2 100644 (file)
@@ -214,7 +214,8 @@ echo '</tr>';
 
 foreach ( $providers as $providerid => $provider){
     $providername = get_string('messageprovider:'.$provider->name, $provider->component);
-    echo '<tr><th align="right">'.$providername.'</th><td colspan="'.$number_procs.'"></td></tr>'."\n";
+    $helpbtn = helpbutton(str_replace('/', '_', $provider->component).'_'.$provider->name, $providername, "messaging", 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');
         echo '<tr><td align="right">'.$state_res.'</td>'."\n";
@@ -237,9 +238,6 @@ echo '</fieldset>';
 //get a listing of all the message processors
 $processors = $DB->get_records('message_processors');
 
-///  TODO:  (from martin)
-///         1) For email plugin, if the email is blank can we make it default to profile email address?   Show this to use by adding "Default: martin@moodle.com" after the actual field for setting a new one.
-
 foreach ( $processors as $processorid => $processor){
     $processorfile = $CFG->dirroot. '/message/output/'.$processor->name.'/message_output_'.$processor->name.'.php';    
     if ( is_readable($processorfile) ) {