Source: site.view [edit]
Function name: copyModule
Arguments: mod1,mod2
Description: Copies all commands from module 1 to module 2.
Page type: webl
Render function:  
Module: site

Page source:

every func in Wub_FunctionList(mod1) do
  
  var name = mod1 + "." + func;
  var fi = Wub_GetFunctionInfo(name);
  fi.module := mod2;
  Wub_SaveFunctionInfo(fi);
end;

"All commands copied from " + mod1 + " to " + mod2 + ".";