diff

Diff code posted
created at 20 Jan 15:34

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*** /srv/http/moodle/blocks/course_overview/renderer.php  2013-10-25 14:19:31.609412900 +0200
--- renderer.php  2014-01-20 15:18:46.029442041 +0100
***************
*** 320,323 ****
--- 320,335 ----
  
          return $output;
      }
+ 
+   /**
+    * Create Quick Add Course Buttons
+    *
+    * @param string $url link
+    * @param string $text button text
+    * @return string html
+    */
+   public function add_button_link($url, $text, $params = array()) {
+     $output = $this->output->single_button(new moodle_url($url, $params), $text, 'GET');
+     return $output;
+   }
  }
594 Bytes in 2 ms with coderay