Welcome to Drupaler.co.uk
This is a UK-based collaborative blog for Drupal developers around the world. There is also an associated Drupal news feed available on this page.
Recent blog posts
- Cleaning Up After Migrating To Drupal
- Getting Stuff Done
- Services, or How I Learned We're All Just Secretly hook_menu()
- Multilingual Drupal: Some Dos And Don'ts
- Why Is Writing Drupal Documentation Harder Than Writing Wikipedia?
- How Drush Make Just Changed My Life
- Importing Nodes Using The Batch API
- Wrapping Up: A Linux Script For The End Of The Day
- Getting French Characters On Your English Keyboard With Gnome
- Drupal Help Haiti: Day 4


Mike, you are right, the Ctools API has changed how to do this.
In the latest versions of Ctools and Panels you now need to do the following -
in your .module file -
/*** Implementation of hook_ctools_plugin_api().
*/
function mymodule_ctools_plugin_api($module, $api) {
if ($module == 'page_manager' && $api == 'pages_default') {
$module_path = drupal_get_path('module', 'mymodule');
return array('version' => 1, 'path' => $module_path);
}
}
In your module folder now create mymodule.pages_default.inc file and inside that put the following -
/**
* Implementation of hook_default_page_manager_handlers()
*/
function mymodule_default_page_manager_handlers() {
$handlers = array();
//handler export code here.
$handlers[$handler->name] = $handler;
return $handlers;
}
/**
* Implementation of hook_default_page_manager_pages()
*/
function mymodule_default_page_manager_handlers() {
$pages = array();
//page export code here.
$pages[$page->name] = $page;
return $pages;
}
Depending on the type of Panel you are exporting you may only need 1 of the above hooks, which will contain the whole export.
This is/was a Panels 3 tutorial, but the CTools API seems to have changed since it was written. We're going to update it.
I am so happy that I found this post.
It has been very helpful.. actually I was trying from days together to figure out page not found error..
Thank you
I have recorded the script and modified to extract the form_build_id. Even then the Login fails. Could not figure out how to make login work.
Can you provide a sample script with login step would be of great help.
Thanking in advance.
I prefer just the normal homepage. Why get a handbook page when you can use the right column plug?