2011-10-13, 03:31 AM
Maybe I've missed it, but I need a hook in the ACP that will fire a function (in my plugin) when the user changes a radio choice.
Or maybe there's a more elegant way? I'm giving the user a choice of which of two places the output of the plugin will appear, by inserting a class in the template. If the user changes the choice in Settings, I have to remove the existing change. Is there already some mechanism for that? (Yes, I know it works in installing and uninstalling the plugin - I need to execute a function to do the changes when the user changes the setting in the plugin. Maybe I've just been working too hard to see some obvious way of doing it.)
Or maybe there's a more elegant way? I'm giving the user a choice of which of two places the output of the plugin will appear, by inserting a class in the template. If the user changes the choice in Settings, I have to remove the existing change. Is there already some mechanism for that? (Yes, I know it works in installing and uninstalling the plugin - I need to execute a function to do the changes when the user changes the setting in the plugin. Maybe I've just been working too hard to see some obvious way of doing it.)