} $setupclass = $config['mod_setup_class']; if (!$setupclass) { if ($obj->mod_type != 'core') { $AppUI->setMsg('Module does not have a valid setup class defined', UI_MSG_ERROR); $AppUI->redirect(); } } else { $setup = new $setupclass(); } switch ($cmd) { case 'moveup': case 'movedn': case 'movefirst': case 'movelast': $obj->move($cmd); $AppUI->setMsg('Module re-ordered', UI_MSG_OK); break; case 'toggle': // just toggle the active state of the table entry $obj->mod_active = 1 - $obj->mod_active; $obj->store(); $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':