You are here

function page_manager_handler_add_cancel in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/page_manager.admin.inc \page_manager_handler_add_cancel()

Throw away a new handler and return to the add form

1 string reference to 'page_manager_handler_add_cancel'
page_manager_get_operations in page_manager/page_manager.admin.inc
Take the operations array from a task and expand it.

File

page_manager/page_manager.admin.inc, line 1379
Administrative functions for the page manager.

Code

function page_manager_handler_add_cancel(&$form_state) {
  $form_state['new trail'] = array(
    'handlers',
    'add',
  );

  // Remove the temporary page.
  unset($page->new_handler);
  unset($page->forms);
}