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.
ref: hook_content_generate() source: http://drupal.org/node/257874#comment-842534
example filefield implementation on filefield.module
Comment | File | Size | Author |
---|---|---|---|
#2 | phone-devel_generate-794356.patch | 1.95 KB | zhuber |
Comments
Comment #1
zhuber CreditAttribution: zhuber commentedPatching this issue for drupal 7.
Comment #2
zhuber CreditAttribution: zhuber commentedI've added devel generate support for the phone number field, including all of the available country code options.
Here is the patch.
If this patch is committed, please attribute correctly. (http://www.bywombats.com/blog/09-06-2011/giving-credit-where-credit-due)
Here is my author info:
--author="zhuber <zhuber@1437276.no-reply.drupal.org>"
Comment #3
delacosta456 CreditAttribution: delacosta456 commentedhi
i applied the patch but did'nt work.
but did'it need to be applied to devel module or phone module?
can you please write a patch for telephone module ? thanks
Comment #4
zhuber CreditAttribution: zhuber as a volunteer and commentedThe patch needs to be applied to the drupal 7 version of the Phone module. It worked fine for me just now, it creates the devel generate include file.
branch: 7.x-1.x
command:
git apply -v phone-devel_generate-794356.patch