You are here

function page_manager_break_lock_submit in Chaos Tool Suite (ctools) 7

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

Submit to break the lock on a page.

File

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

Code

function page_manager_break_lock_submit(&$form, &$form_state) {
  $page =& $form_state['page'];
  $form_state['page']->locked = FALSE;
  ctools_object_cache_clear_all('page_manager_page', $page->task_name);
  $form_state['do not cache'] = TRUE;
  drupal_set_message(t('The lock has been cleared and all changes discarded. You may now make changes to this page.'));
  $form_state['new trail'] = array(
    'summary',
  );
}