You are here

function path2ban_get_default_paths_to_ban in path2ban 7

Same name and namespace in other branches
  1. 7.2 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_enable in ./path2ban.install
Implements hook_enable().
path2ban_update_7101 in ./path2ban.install
Implements hook_update_N

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');
}