Last active
December 15, 2015 02:19
-
-
Save mudrd8mz/5186295 to your computer and use it in GitHub Desktop.
Simple Moodle YUI3 module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check for write permission for the selected plugin type | |
* | |
* $this->page->requires->yui_module('moodle-tool_installaddon-permcheck', 'M.tool_installaddon.permcheck.init', | |
* array(array('aparam' => 'paramvalue'))); | |
* | |
* @package tool_installaddon | |
* @subpackage yui | |
* @author David Mudrak <[email protected]> | |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | |
*/ | |
YUI.add('moodle-tool_installaddon-permcheck', function(Y) { | |
M.tool_installaddon = M.tool_installaddon || {}; | |
M.tool_installaddon.permcheck = { | |
/** | |
* @method init | |
*/ | |
init : function(config) { | |
Y.log(config); | |
} | |
} | |
}, '@VERSION@', { | |
requires:['node'] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
M.tool_installaddon.permcheck = {
init: function(config) {
}
};
$PAGE->requires->yui_module('moodle-tool_installaddon-permcheck', 'M.tool_installaddon.permcheck.init', array(array('foo' => 'bar'));