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:
@@ -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 ===
|
||||
|
||||
|
||||
Reference in New Issue
Block a user