I found what I was looking for.
To provide options for creating pages using the page manager in code, hook_ctools_plugin_api () is called in your module file so that the page manager knows that he should listen to your module:
/** * Implement hook_ctools_plugin_api(). * * Tells ctools, page manager and panels, that we have a template ready */ function mtvideo_ctools_plugin_api($module, $api) { // @todo -- this example should explain how to put it in a different file. if ($module == 'panels_mini' && $api == 'panels_default') { return array('version' => 1); } if ($module == 'page_manager' && $api == 'pages_default') { return array('version' => 1); } }
Now create a new file in the root folder of the MODULE_NAME.pages_default.inc module. In this file you can now enable the following functions:
hook_default_page_manager_pages()
and / or
hook_default_page_manager_handlers()
I hope this helps another one who needs it once: o) It remains only to find out how my module can programmatically enable the node /% node page in the Page Manager. If anyone has a key, feel free to share it with me :)
source share