You are here

function page_manager_page_add_subtask_cancel in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/plugins/tasks/page.admin.inc \page_manager_page_add_subtask_cancel()

Callback generated when the 'cancel' button is clicked.

All we do here is clear the cache.

1 string reference to 'page_manager_page_add_subtask_cancel'
page_manager_page_add_subtask in page_manager/plugins/tasks/page.admin.inc
Page callback to add a subtask.

File

page_manager/plugins/tasks/page.admin.inc, line 371
Administrative functions for the page subtasks.

Code

function page_manager_page_add_subtask_cancel(&$form_state) {

  // Wipe all our stored changes.
  if (isset($form_state['page']->task_name)) {
    page_manager_clear_page_cache($form_state['page']->task_name);
  }
}