You are here

function page_manager_page_argument_cancel in Chaos Tool Suite (ctools) 7

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

Callback generated when the 'cancel' button is clicked.

We might have some temporary data lying around. We must remove it.

1 string reference to 'page_manager_page_argument_cancel'
page_manager_page_subtask_argument_ajax in page_manager/plugins/tasks/page.admin.inc
Ajax entry point to edit an item.

File

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

Code

function page_manager_page_argument_cancel(&$form_state) {
  $page =& $form_state['page']->subtask['subtask'];
  if (isset($page->temporary_arguments)) {
    unset($page->temporary_arguments);

    // Update the cache with changes.
    page_manager_set_page_cache($page);
  }
}