specific folder for "admin_setting_configstoredfile"

Re: specific folder for "admin_setting_configstoredfile"

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The $name argument for an admin_setting object is the config setting in which the value is stored.  If you pass 'myplugin/mysetting'  as the name, you'll be able to read the resulting value by doing get_config('myplugin', 'mysetting').  As far as I can tell by a brief look at the code in admin_setting_configstoredfile.php, this should contain the full path to the saved file.