Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There were some changes in latest Drupal core that broke devel generate module. Here are the changes that I made:
- updated the devel_generate.info file added core = 6.x see http://drupal.org/node/146910
- $form_values is now $form_state['values'] http://drupal.org/node/144132#form-state
- db_next_id http://drupal.org/node/149176 was removed. The only problem that I see is when we generate comments with #id in title this is no longer possible as there is no way of knowing which will be the next id for this comment. I solved this by using internal counter of devel_create_comments this means that if you create 2x500 titles of second comments will be the same as in first batch.
- I was getting some notices which I fixed
Comment | File | Size | Author |
---|---|---|---|
#2 | devel.generate.HEAD_.patch | 9.36 KB | Rok Žlender |
devel.module.HEAD_.patch | 8.55 KB | Rok Žlender | |
Comments
Comment #1
dwwpatch no longer applies cleanly:
also, it's not just that db_next_id() is gone, we're not using {sequences} at all anymore. there are a few places in devel_generate.(module|inc) that continue to touch this table, which need to be cleaned up, too.
thanks,
-derek
Comment #2
Rok Žlender CreditAttribution: Rok Žlender commentedPatch should now apply cleanly to HEAD.
I also removed other references to sequence table.
Everything else is left as in #1
Comment #3
Rok Žlender CreditAttribution: Rok Žlender commentedComment #4
moshe weitzman CreditAttribution: moshe weitzman commentedi will test and apply this this week.
i want though devel_generate to use node_save() and user_save() and so on, instead of doing custom DB inserts. patches welcome.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted. would be nice if someone looked into:
- two NOTICE errors when generating content
- the module does INSERTS and shows form elements even if comment.module is disabled.
- use ndeo_save() and user_save() and taxonomy save functions instead of direct DB inserts.
Comment #6
(not verified) CreditAttribution: commented