Cloning of module "comment"

elia - January 23, 2009 - 09:10

Hi All!
I need a clone of module "comment" with saving of full functionality in module (names of functions with variables, constants and so on)... "mycomment", for example. What's the right way to do it? Renaming of functions (comment_* -> mycomment_* excluding comment_render()) and themes (theme_comment_* -> theme_mycomment_*) not enough. Can you give me example of those clone?
Thanks.

You may want to outline your reason

Keyz - January 23, 2009 - 09:19

You may want to outline your reason for wanting to clone the module (which is probably not recommended), since people may be able to suggest a better alternative.

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

Reason:

elia - January 23, 2009 - 10:43

I made a module which place comments in database of third-party forum engine. This module must fully replace the functionality of standard module "comment". And this module must be compatible with fresh revisions of Drupal. [For example: developers of "vbDrupal" (it's a single realisation of those functionality) rewrite "node.module", "bootstrap.inc" and many other base files for this. And vbDrupal 5.14 was delayed for 2 weeks with a Drupal 5.14...]
I rewrite module "comment" for this task, and it work on my site. But I replaced only the code within "system" functions with saving of base structure and names of module "comment". I want to share my module with community and as for me it's wrong way to share this "substitute" of standard module.
The best way is: module "mycomment" which places in directory "/sites/all/modules/" and so on.

 
 

Drupal is a registered trademark of Dries Buytaert.