You are here

function page_manager_export_task_handler in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/page_manager.module \page_manager_export_task_handler()

Export a task handler into code suitable for import or use as a default task handler.

3 calls to page_manager_export_task_handler()
page_manager_handler_clone_submit in page_manager/page_manager.admin.inc
Clone an existing task handler into a new handler.
page_manager_handler_export in page_manager/page_manager.admin.inc
Entry point to export a page.
page_manager_page_export in page_manager/plugins/tasks/page.inc
Export a page subtask.
1 string reference to 'page_manager_export_task_handler'
page_manager_schema_1 in page_manager/page_manager.install
Schema version 1 for Panels in D6.

File

page_manager/page_manager.module, line 715
The page manager module provides a UI and API to manage pages.

Code

function page_manager_export_task_handler($handler, $indent = '') {
  ctools_include('export');
  ctools_include('plugins');
  $handler = clone $handler;
  $append = '';
  if ($function = ctools_plugin_load_function('page_manager', 'task_handlers', $handler->handler, 'export')) {
    $append = $function($handler, $indent);
  }
  $output = ctools_export_object('page_manager_handlers', $handler, $indent);
  $output .= $append;
  return $output;
}