function ip2country_test_ip2country_alter in IP-based Determination of a Visitor's Country 7
Same name and namespace in other branches
- 8 tests/modules/ip2country_test/ip2country_test.module \ip2country_test_ip2country_alter()
Implements hook_ip2country_alter().
File
- tests/
ip2country_test.module, line 24 - Determination of user's Country based on IP.
Code
function ip2country_test_ip2country_alter($path, $arg) {
drupal_set_message('hook_ip2country_alter() executed.');
// @todo Actually do something here!
// Should have a little testing database of IP addresses,
// replace the array in ip2country.test,
// mini DB can be used in place of real DB for testing, plus
// it validates hook.
}