You are here

function page_manager_delete_task_handler in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/page_manager.module \page_manager_delete_task_handler()

Remove a task handler.

2 calls to page_manager_delete_task_handler()
page_manager_page_delete in page_manager/plugins/tasks/page.inc
Remove a page subtask.
page_manager_save_page_cache in page_manager/page_manager.module
Write all changes from the page cache and clear it out.

File

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

Code

function page_manager_delete_task_handler($handler) {

  // Let the task handler respond to saves:
  if ($function = ctools_plugin_load_function('page_manager', 'task_handlers', $handler->handler, 'delete')) {
    $function($handler);
  }
  db_query("DELETE FROM {page_manager_handlers} WHERE name = '%s'", $handler->name);
  db_query("DELETE FROM {page_manager_weights} WHERE name = '%s'", $handler->name);
}