[development] Drupal way to seed data for a module.

Aaron Winborn winborn at advomatic.com
Fri Jan 29 00:11:57 UTC 2010


Might also look at the location module, which does exactly this, from 
what I recall.

Anth wrote:
> Hi,
>
> I'm building a module that has a lot of supporting data (it's a custom 
> shipping module that maps postcodes/zips to regions etc.) and know 
> that I can create the table using hook_schema() and could use 
> hook_install() to add rows of data to the schema, but I'm talking tens 
> of thousands of rows, so wondering if there is a better method for 
> doing this?
>
> Anthony.


-- 
Aaron Winborn

Advomatic, LLC
http://advomatic.com/

Drupal Multimedia available now!
http://www.packtpub.com/create-multimedia-website-with-drupal/book

My blog:
http://aaronwinborn.com/



More information about the development mailing list