Merge branch 'MDL-41241-master' of git://github.com/damyon/moodle
[moodle.git] / lib / editor / atto / plugins / link / lib.php
index c3a5a5f..1276905 100644 (file)
@@ -31,9 +31,9 @@ defined('MOODLE_INTERNAL') || die();
 function atto_link_init_editor($elementid) {
     global $PAGE, $OUTPUT;
 
-    $icon = $OUTPUT->pix_icon('link',
+    $icon = $OUTPUT->pix_icon('e/insert_edit_link',
                               get_string('link', 'atto_link'),
-                              'atto_link',
+                              'moodle',
                               array('class'=>'icon'));
 
     $PAGE->requires->strings_for_js(array('createlink',
@@ -45,14 +45,14 @@ function atto_link_init_editor($elementid) {
 
     $PAGE->requires->yui_module('moodle-atto_link-button',
                                 'M.atto_link.init',
-                                array(array('elementid'=>$elementid, 'icon'=>$icon)),
+                                array(array('elementid'=>$elementid, 'icon'=>$icon, 'group'=>'link')),
                                 true);
 
 }
 
 /**
  * Return the order this plugin should be displayed in the toolbar
- * @return int
+ * @return int the absolute position within the toolbar
  */
 function atto_link_sort_order() {
     return 11;