You are here

protected function FeedsFileFetcher::getSchemeOptions in Feeds 7.2

Returns available scheme options for use in checkboxes or select list.

Return value

array The available scheme array keyed scheme => description

1 call to FeedsFileFetcher::getSchemeOptions()
FeedsFileFetcher::configForm in plugins/FeedsFileFetcher.inc
Overrides parent::configForm().

File

plugins/FeedsFileFetcher.inc, line 369
Home of the FeedsFileFetcher and related classes.

Class

FeedsFileFetcher
Fetches data via HTTP.

Code

protected function getSchemeOptions() {
  $options = array();
  foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $info) {
    $options[$scheme] = check_plain($scheme . ': ' . $info['description']);
  }
  return $options;
}