ref: hook_content_generate() source: http://drupal.org/node/257874#comment-842534
example filefield implementation on filefield.module

CommentFileSizeAuthor
#2 phone-devel_generate-794356.patch1.95 KBzhuber
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zhuber’s picture

Version: 6.x-2.15 » 7.x-1.x-dev
Assigned: Unassigned » zhuber
Issue summary: View changes
Status: Active » Needs work

Patching this issue for drupal 7.

zhuber’s picture

Assigned: zhuber » Unassigned
Status: Needs work » Needs review
FileSize
1.95 KB

I'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>"

delacosta456’s picture

hi

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

zhuber’s picture

The 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