MDL-22795 new paypal icons - credit goes to Rossiani Wijaya

This commit is contained in:
Petr Skoda 2010-09-20 07:46:11 +00:00
parent 169348bcda
commit 5bd2219b16
2 changed files with 15 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B