Page Manager allows you to build up a "page" with smaller "panels", such that you can add fields, blocks and views into different layouts. But how do you write your own custom panel?
Page Manager is a part of the Chaos Tools module.
Create this function in your modules .module file. This simply tells cTools where to look for additional plugins.
Remember that Chaos Tools uses the term "Content Types" differently to the Drupal Core.
You will also need to create a directiory in your module called "plugins/content_types".
Each plugin will have its own file - for example PLUGINNAME.inc - with this structure.
Other options are
You main output function is
The $panel_args variable is an array of contextual variables that you can use
Use this link to get DropBox http://db.tt/iQHWaaF