Skip to content
Snippets Groups Projects
Commit d78d1b14 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3040903: Use file_get_stream_wrappers() in fillpdf_scheme_options()

parent c4d54310
No related branches found
No related tags found
No related merge requests found
......@@ -2063,10 +2063,11 @@ function fillpdf_build_uri($path) {
* Array of acceptable file scheme options as identifier => translated title.
*/
function fillpdf_scheme_options() {
return array(
'private' => t('Private files'),
'public' => t('Public files'),
);
$options = array();
foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $info) {
$options[$scheme] = check_plain($info['description']);
}
return $options;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment