Allow setting of the 403 URL to the m4032404 menu callback via the admin form

Created on 14 June 2013, about 12 years ago
Updated 21 May 2025, about 1 month ago

Now that we have a settings form it would be handy to have a checkbox to set the 403 page to the m4032404 callback. This can be caught in the admin form submit handler, if the checkbox is set then it calls variable_set('site_403', M4032404_CALLBACK); and then unsets the checkbox element in the $form_state['values'] array.

The menu callback string should be defined as a constant (M4032404_CALLBACK). Then where ever the value is used the constant should be used.

When the form is being built a variable_get call should get the value of site_403 and compare the value to the constant.

I don't currently have time to implement this change, but I'd welcome a patch for it.

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇦🇺Australia skwashd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024