1
intel352
suggestion for duplicating modules
  • 2004/5/27 19:44

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


just a suggestion, isn't it possible to call the xoops_version database array from the actual module? so, having called the database array, couldn't all of the sql queries be created by referencing the table array?
// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "table1";
$modversion['tables'][1] = "table2";
$modversion['tables'][2] = "table3";


that would mean that users could just change the sql table names in xoops_version and the sql file, and the module name, and then most everything else should work fine, right?

i'm not sure, since i haven't had to worry about cloning modules in the past, but just an idea for module developers that want to make their own module easy to clone

Login

Who's Online

378 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 378


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits