Closed (fixed)
Project:
Name Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 10:40 UTC
Updated:
9 May 2013 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
cr0ss commentedPatch attached.
Comment #2
alan d. commentedHi Cr0ss,
Thanks, it would be a good feature. I wonder about the name list through [some words are definitely not fit for the general public, even if I personally consider these fairly tame], maybe a list of say the top 100 people of the 20th century or something may be better, returning the entire component array for each person. An override would allow users to define their own lists.
Comment #3
cr0ss commentedTotally agree Alan D., I'm starting work on implementation.
Comment #4
cr0ss commentedHere is a new version of patch with list of most famous Names, Surnames and Middle names generated just like you've described above.
Is there anything more we can enhance for now?
Comment #5
alan d. commentedLooks great. I've made the following change:
This pulls out the name options correctly, taking the potential "[vocabulary:xx]" and "-- Empty option" into account. Since the components are keyed, the double array_flip wasn't needed. Finally, for bigger bulk generation operations, the performance should be a bit better, albeit this was probably insignificant to the entity system overhead :)
Committed and pushed to dev.
Thanks!
Comment #6
alan d. commentedI've got a local typo to push sometimes, but I think that we can close this for the time being. Let me know if you want any other changes.
A small enhancement would be a form alter on the devel settings page to allow users to select the devel generate function and to supply a few fun callback options, like your original, maybe a Disney one or another "cute" one for those so inclined... Easy commit credits if you feel like it :)
Right, back to work. Porting ImageField Extended after ruling out File Entities and Field Collections for abig project that we are working on.
Comment #7
cr0ss commentedAs for me it's awesome for now! Thank you so much for commit. Going further on my work too to get next changes list.
Comment #9
xcf33 commentedHi sorry to being it up,
It seems that the current 7.x branch of the devel generate is not working due to the use of a wrong function, I've included a patch.
In the previous patch it had which looks like it worked but it's not in the current file
I believe we should simply just use array_intersect_key
Thanks
Comment #10
rosk0Last patch works well for me.
I would be bold and set this as RTBC.
Comment #11
traviscarden commentedConfirmed. That does the trick!
Comment #12
traviscarden commentedOh... but it doesn't seem to work with taxonomy terms. The hook implementation doesn't even fire. I don't have time to look further into it at the moment.
Comment #13
rosk0devel_genarate has a bug, because of this no fields are filed when generating terms.
I provided patch for this in this thread http://drupal.org/node/1589166
Comment #14
rosk0Comment #15
alan d. commentedPushed to dev. Thanks everybody!
Comment #16
rosk0At last!
Thanks!