$AppUI->setMsg('Module state changed', UI_MSG_OK); break; case 'toggleMenu': // just toggle the active state of the table entry $obj->mod_ui_active = 1 - $obj->mod_ui_active; $obj->store(); $AppUI->setMsg('Module menu state changed', UI_MSG_OK); break; case 'install': $result = $setup->install($config); if (!$result) { $AppUI->setMsg($setup->getErrors(), UI_MSG_ERROR); } else { $obj->bind($config); // add to the installed modules table $obj->install(); $AppUI->setMsg('Module installed', UI_MSG_OK, true); } break; case 'remove': $result = $setup->remove(); if (!$result) { $AppUI->setMsg($setup->getErrors(), UI_MSG_ERROR); } else { $obj->bind($config); // remove from the installed modules table $obj->remove(); $AppUI->setMsg('Module removed', UI_MSG_OK, true); } break; case 'upgrade':