function page_manager_break_lock_submit

Submit to break the lock on a page.

File

page_manager/page_manager.admin.inc, line 1774

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',
    );
}