Question : How do I add sample data to my custom module table on install?

I have a custom module with an install file that creates a new table upon installation.  So far it works perfectly but I would like it so that when the module is installed, the system automatically adds a few sample records to the database.  
I don't know exactly where and when I should be using the Drupal  db_query function to insert the sample data into the new table.
I attached my install file if that helps.
Attachments:
 
 

Answer : How do I add sample data to my custom module table on install?

If you have backups, you need to restore from backup.

Since the file was not deleted but truncated, you can not undelete it.

Recently, I found that, at least Outlook 2007, may have a problem with some NAS drives/servers.  Pending determining the cause, I have had to move those PSTs to local drives then have a backup routine back them up to the NAS where a traditional backup gets them with the rest of the data.

- Tom

Random Solutions  
 
programming4us programming4us