mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-22795 new paypal icons - credit goes to Rossiani Wijaya
This commit is contained in:
parent
169348bcda
commit
5bd2219b16
@ -34,6 +34,21 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
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
|
||||
|
BIN
enrol/paypal/pix/icon.gif
Normal file
BIN
enrol/paypal/pix/icon.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 B |
Loading…
x
Reference in New Issue
Block a user