Add settings form to change Charset with variable_get
swentel - March 21, 2008 - 16:20
| Project: | AMFPHP |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Attached is a patch which adds a hook_menu and a settings callback to configure three things:
- CharsetMethod
- Charsetphp
- Charsetsql
The $gateway->setCharsetHandler hardcode values are replaced by variable_get() functions.
This way, we don't need to fiddle with the files and it's easier to configure and test.
I'm using a select box now, I guess we should add more options ? Or maybe just use a textfield.
| Attachment | Size |
|---|---|
| settings.patch | 2.19 KB |

#1
Related duplicate: #167376: Gateway Charsethandler overridden
#2
I like this ...
I've modified this a bit to add the settings page at: admin/build/services/settings/amfphp, which should be the convention for other server settings pages, and have committed to both D5 and D6 branches.
Thanks,
Scott
#3
Automatically closed -- issue fixed for 2 weeks with no activity.