Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have the following option enabled:
Present login form on access denied (403)
I would like to be able to customize the page title and message that is presented on that page.
Comment | File | Size | Author |
---|---|---|---|
#4 | logintoboggan-custom-403-title-description-170276-4.patch | 3.54 KB | jasonawant |
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedalthough it might seem like making this customizable would be easy and clean, i'm not seeing a way to do it that i'm happy with, so it's going to stay as is.
you can always hack the module to change that if you really want to.
Comment #2
cbutera CreditAttribution: cbutera commentedI did this already - but I run the module on 3 sites on one codebase. Just a feature request - not high priority...
Comment #3
ianchan CreditAttribution: ianchan commentedHow did you hack the module? I'd like to suppress the "Please login message..."
EDIT: found it.. comment out line 828 in logintoboggan.module
Comment #4
jasonawantHi,
I too needed to customize the 403 page title and error message displayed on the logintoboggan 403 page. There were other ways to do this, but I thought have these options backed in to logintoboggan better organized these customizations.
Here's a patch that provides these options on the settings form, stores them as variables, and uses them appropriately. The patch also includes them in the hook_uninstall() to remove the variables. Feedback welcomed.
This patch is against 7.x-1.4, the version I'm using on a project. I can create another against 7.x-1.x if the maintainers want this feature committed there.
Comment #5
elpino CreditAttribution: elpino as a volunteer commentedI applied the patch manually to latest Dev branch, and works as expected.
Comment #6
sillygwailoThis works great for a client of ours as well.
Comment #7
elpino CreditAttribution: elpino as a volunteer commentedThis patch should really be commited. I just spent the last hour trying to figure out how I had implemented this functionality on another site before figuring out it was something I had manually patched. Also not the first time.
Just update patch to latest release.