function path2ban_get_default_paths_to_ban in path2ban 7.2
Same name and namespace in other branches
- 7 path2ban.install \path2ban_get_default_paths_to_ban()
This function prevents us from needing to have the same configuration repeated multiple times.
2 calls to path2ban_get_default_paths_to_ban()
- Path2ban::addNewEntries in src/
Path2ban.php - A utility function to add new entries to the restricted paths list.
- path2ban_enable in ./
path2ban.install - Implements hook_enable().
File
- ./
path2ban.install, line 12 - Install, update, and uninstall functions for the path2ban module.
Code
function path2ban_get_default_paths_to_ban() {
return file_get_contents(drupal_get_path('module', 'path2ban') . '/path2ban_default_entries.config');
}