customscripts: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Custom Scripts Mechanism== | ==Custom Scripts Mechanism== | ||
Any scripts that are called directly via a url (eg index.php, user/view.php) can now be customised by placing a file with the same name (including directories) in my_moodle_data_dir/customscripts | Any scripts that are called directly via a url (eg index.php, user/view.php) | ||
can now be customised by placing a file with the same name (including directories) in | |||
my_moodle_data_dir/customscripts | |||
For example: | For example: | ||
my_moodle_data_dir/customscripts/index.php; my_moodle_data_dir/customscripts/user/view.php | my_moodle_data_dir/customscripts/index.php; my_moodle_data_dir/customscripts/user/view.php |
Revision as of 20:28, 26 April 2007
Custom Scripts Mechanism
Any scripts that are called directly via a url (eg index.php, user/view.php) can now be customised by placing a file with the same name (including directories) in my_moodle_data_dir/customscripts For example: my_moodle_data_dir/customscripts/index.php; my_moodle_data_dir/customscripts/user/view.php
- this is for people making short term changes to VISIBLE web pages in the moodle source code
- it seems to have been used extensively only by the Moodle_for_Mobiles project
- to enable Custom Scripts, add $CFG->customscript=path/to/customscript/folder (see Configuration_file)