How do I prepopulate a table?

carlwenrich - July 21, 2008 - 03:16

I created the table in the install script. Now, how do I prepopulate it?

Which install script?

nevets - July 21, 2008 - 04:01

Which install script? Which table?

install script

carlwenrich - July 21, 2008 - 04:06

any .install script

=-=

VeryMisunderstood - July 21, 2008 - 04:09

if you mean a .install in a module, you enable the module and the .install runs on its own. You don't have to manually manipulate the DB for things of that nature.

If the above isn't what you are talking about you will have to be more verbose!

I know, but...

carlwenrich - July 21, 2008 - 04:15

I know the .install script runs on its own, but I only know how to specify the creation of tables in it. The question is how to specify inserts.

=-=

VeryMisunderstood - July 21, 2008 - 11:35

may help to look at a contrib module that does this and mimic the process. Every module inserts a row into the system table.

 
 

Drupal is a registered trademark of Dries Buytaert.