This is task #2 of a two task project to document the extensive API in Panels 2. This task requires you to research and document the following sections of the Panels 2 API:

1) Document how to create a 'context' object using hook_panels_contexts()
2) Document how to create an argument for panels pages using hook_panels_arguments()
3) Document how to create a relationship from one context to another using hook_panels_relationships()
4) Document how to create a panel style using hook_panels_styles()

Documenting this might require searching through the Panels 2 code looking for module_invoke and $function() calls; the two hooks described above return a packet of data, and much of that data are pointers to functions that can be called. Describing that data and how those additional functions are used are key here. So beware that while there are only 4 steps listed above, each step is more complicated than it sounds.

Documentation for this task should be placed here: http://groups.drupal.org/node/7678 (This is a wiki page, so is easily edited)

Comments

merlinofchaos’s picture

Status: Active » Needs review
cwgordon7’s picture

Hmm...

1) The resources for this don't look like they cover the task; searching through the panels 2 code looking for module_invoke is not really what most students in GHOP would classify as "a fun and interesting task."

2) A primary contact would be a big help, as it would then be possible to avoid searching through the source code for module_invoke.

3) This does not really sound like a very interesting task; perhaps rework it to make it more attractive to a GHOP student, and thus more likely to be performed?

cwgordon7’s picture

Status: Needs review » Needs work
webchick’s picture

Component: GHOP Task » Task idea