2015-02-25, 08:08 AM
Hello there,
I'm working on a new plugin and have a some small question:
I want to check if the settings have changed when the admin saves the plugin configuration, and warn him if there are troubles with the new settings.
I thing I've to use the admin_config_settings_change_commit hook to get the new values and compare them with $mybb->settings. But How to block the recording and warn ?
And can I simply redirect the admin to the plugin' settings page after plugin activation ?
Regards,
CrazyCat
I'm working on a new plugin and have a some small question:
I want to check if the settings have changed when the admin saves the plugin configuration, and warn him if there are troubles with the new settings.
I thing I've to use the admin_config_settings_change_commit hook to get the new values and compare them with $mybb->settings. But How to block the recording and warn ?
And can I simply redirect the admin to the plugin' settings page after plugin activation ?
Regards,
CrazyCat