Extending devel generate

wesku - October 27, 2009 - 18:48
Project:Devel
Version:6.x-1.x-dev
Component:devel_generate
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have a project were we need to generate some content for our own module with custom database tables. This has been done so very many times before that I started to wonder if it would make more sense to extend devel generate with few hooks that would let module developers to extend content generation for their own data structures. I know that you can already do this easily if you are extending nodes, but in our case we have a very light weight custom data structure that is no using nodes at all.

What do you think about this idea? I don't think it's very easy to implement on top of devel generate. If we find a reasonable way to do it in 6.x version we might implement it and contribute it as a patch. Any ideas on how to do this are welcome.

#1

moshe weitzman - October 27, 2009 - 18:56
Status:active» fixed

I think it is best if you should write own module for this. there is little code you can leverage in devel_generate. for example, votingapi module ships with code to generate votes.

#2

wesku - October 27, 2009 - 19:06

Ok... This was our original plan, but it sort of bugs me that there isn't more generic way of doing this. Thanks anyway, devel generate rocks. :-)

#3

System Message - November 10, 2009 - 19:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.