Skip to content

Commit

Permalink
MDL-22795 new paypal icons - credit goes to Rossiani Wijaya
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 20, 2010
1 parent 169348b commit 5bd2219
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions enrol/paypal/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
*/
class enrol_paypal_plugin extends enrol_plugin {

/**
* Returns optional enrolment information icons.
*
* This is used in course list for quick overview of enrolment options.
*
* We are not using single instance parameter because sometimes
* we might want to prevent icon repetition when multiple instances
* of one type exist. One instance may also produce several icons.
*
* @param array $instances all enrol instances of this type in one course
* @return array of pix_icon
*/
public function get_info_icons(array $instances) {
return array(new pix_icon('icon', get_string('pluginname', 'enrol_paypal'), 'enrol_paypal'));
}

public function roles_protected() {
// users with role assign cap may tweak the roles later
Expand Down
Binary file added enrol/paypal/pix/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bd2219

Please sign in to comment.