You are here

function page_manager_break_lock_submit in Chaos Tool Suite (ctools) 6

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

Submit to break the lock on a page.


page_manager/, line 1679
Administrative functions for the page manager.


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(