function _pathfilter_allowed_protocol_helper in Path Filter 7
Same name and namespace in other branches
- 5.2 pathfilter.install \_pathfilter_allowed_protocol_helper()
- 6.2 pathfilter.install \_pathfilter_allowed_protocol_helper()
Helper function returns allowed protocols with internal and files added.
2 calls to _pathfilter_allowed_protocol_helper()
- pathfilter_install in ./
pathfilter.install - Implements hook_install().
- pathfilter_uninstall in ./
pathfilter.install - Implements hook_uninstall().
File
- ./
pathfilter.install, line 46 - 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',
));
}