I have a module with an action that is in the actions table. I need to be able to click a button in the module control panel which will perform the action(which usually takes about 15 seconds to complete) and then show a success message on completion. I've been through the module tutorial and could not get it working. Some help and guidance would be GREATLY appreciated. Thanks.
I suggest you to use below code in
mcp file of your
url = BASE .'&'.'C=addons_modules'.'&'.'M=show_module_cp'.'&'.'module=MODULE_NAME'. '&' . 'method='.$method; $this->EE->cp->set_right_nav(array('Button Title' => $url));