MDL-52715 lib: Addition of new requirements class.

This adds a fragment requirements class to allow plugins
to register JavaScript to be used in an mform.
This commit is contained in:
Adrian Greeve
2016-02-01 14:29:09 +08:00
parent c9d91bb734
commit cc73ea075e
7 changed files with 401 additions and 0 deletions
+10
View File
@@ -1051,6 +1051,16 @@ $functions = array(
'ajax' => true,
),
'core_get_fragment' => array(
'classname' => 'core_external',
'methodname' => 'get_fragment',
'classpath' => 'lib/external/externallib.php',
'description' => 'Return a fragment for inclusion, such as a JavaScript page.',
'type' => 'read',
'loginrequired' => false,
'ajax' => true,
),
// === Calendar related functions ===