Module dependencies

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Module dependencies

Post by quadracer »

I'm going my first steps on php coding for CMSms.

Is it possible a module that's depending more than one other module (for example cmsmailer and captcha) ?
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: Module dependencies

Post by Elijah Lofgren »

quadracer wrote: I'm going my first steps on php coding for CMSms.

Is it possible a module that's depending more than one other module (for example cmsmailer and captcha) ?
Looks like it is possible.

Here is the example code that is in the example module skeleton:  http://dev.cmsmadesimple.org/projects/skeleton

Code: Select all

	/*---------------------------------------------------------
	   GetDependencies()
	   Your module may need another module to already be installed
	   before you can install it.
	   This method returns a list of those dependencies and
	   minimum version numbers that this module requires.
	   
	   It should return an hash, eg.
	   return array('somemodule'=>'1.0', 'othermodule'=>'1.1');
	  ---------------------------------------------------------*/
	function GetDependencies()
	{
		return array();
	}

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Post Reply

Return to “Developers Discussion”