Documentation or examples showing use of Patterns with custom modules?

dwightaspinwall - July 6, 2009 - 15:33
Project:Patterns
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Do you have any documentation describing how to expose Patterns support from currently unsupported modules? Looks like you've defined a hook for that purpose. Fine if it's a module I wrote. How about the case of a contrib module which isn't yet supported? IS it a question of getting the module maintainer to add the Patterns support? Thanks.

#1

ChrisBryant - September 23, 2009 - 00:58

My understanding is that there are three ways currently:

1. Support the module by writing a Patterns component include file and submitting it as a patch for inclusion with the Patterns module. We're open to any such patches. In this case it would be done by either requesting the Patterns maintainers (Sarva & Vaish,) the module maintainer, or anyone else in the community to write the desired support. If it's an important commonly used module most likely we'll write the support.

2. Include the support with your module and use the provided hook to have the Patterns module load the file and support it.

3. Don't write a specific component to support it and just use the included "form" tag. This is the least ideal method but it's quick and does the trick for small/simple modules.

I just added a documentation page showing the use of the "form" tag as well. It can be found here:
http://drupal.org/node/516332

Also, it's important to note that 1 & 2 will be improved dramatically by the work being done in the Configuration Framework. This is meant to replace the core of the Patterns module and make it much easier to support any or new modules.

#2

mErilainen - August 24, 2009 - 19:21

How to get involved with this module (or the Configuration framework module)? I see that there is some progress all the time.

I'm doing a Master's thesis work on a topic "Streamlining creation of social network services with Drupal" and these two modules seem to match that topic fairly well.

#3

dman - September 23, 2009 - 00:55

Option 4 - see what happens when you use the UI to submit form values (using the form macro logger) and saving those values as a form submission. a huge majority of modules have all their interesting settings just in their setting form, and if all you want to do is make changes like that, you can just do it - no custom code needed.

 
 

Drupal is a registered trademark of Dries Buytaert.