Closed (won't fix)
Project:
Restrict IP
Version:
7.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2012 at 17:43 UTC
Updated:
17 Jan 2014 at 06:18 UTC
Jump to comment: Most recent
Comments
Comment #1
jaypanAs of version 7.x-2.0-alpha1, the access denied page can now be fully customized, by implementing hook_restrict_ip_access_denied_page_alter(), and altering the page render array, either to add, change, or remove existing elements. If you need support with this, please re-open and give an example of what you would like to see.
If you would like to redirect to another site altogether, you can implement drupal_goto() in hook_restrict_ip_access_denied_page_alter(). Again, let me know if you need an example of how to implement this.
It's possible that I may add the functionality to set the text or to set a custom redirect through the admin interface in future versions of the module, however it is not something that will be part of the 7.x-2.0 branch.
Comment #2
Leeteq commentedFor admins (non-programmers) who want to use this module and make use of such functionality, does it not make sense to at least document the examples on how to do it in the README.txt?
If not, that part of this module would be reserved for programmers only. That is not good for the adoption of this module, IMHO.
Comment #3
jaypanSure. But obviously I didn't think of it, so no need to get snippity, just ask. Version 2.0 is still in development.
I'll add that to alpha3.
Comment #4
jaypanREADME.txt has been created and committed. It will be part of the 7.x-2.0-alpha3 release.