You are here

function _pathfilter_allowed_protocol_helper in Path Filter 6.2

Same name and namespace in other branches
  1. 5.2 pathfilter.install \_pathfilter_allowed_protocol_helper()
  2. 7 pathfilter.install \_pathfilter_allowed_protocol_helper()

Helper function returns allowed protocols with internal and files added.

3 calls to _pathfilter_allowed_protocol_helper()
pathfilter_install in ./pathfilter.install
Implementation of hook_install()
pathfilter_uninstall in ./pathfilter.install
Implementation of hook_uninstall()
pathfilter_update_6200 in ./pathfilter.install
Add internal and files to allowed protocol variable.

File

./pathfilter.install, line 71
Provides install and uninstall functions for pathfilter.

Code

function _pathfilter_allowed_protocol_helper() {
  $allowed_protocols = variable_get('filter_allowed_protocols', array(
    'http',
    'https',
    'ftp',
    'news',
    'nntp',
    'telnet',
    'mailto',
    'irc',
    'ssh',
    'sftp',
    'webcal',
    'rtsp',
  ));
  return array_merge($allowed_protocols, array(
    'internal',
    'files',
  ));
}