function wysiwyg_profile_break_lock_confirm_submit in Wysiwyg 7.2
Same name and namespace in other branches
- 6.2 wysiwyg.admin.inc \wysiwyg_profile_break_lock_confirm_submit()
Submit handler to break_lock a profile.
File
- ./
wysiwyg.admin.inc, line 869 - Integrate Wysiwyg editors into Drupal.
Code
function wysiwyg_profile_break_lock_confirm_submit(&$form, &$form_state) {
// Only the CTools cache handles locks.
if (module_exists('ctools')) {
ctools_include('object-cache');
ctools_object_cache_clear_all('wysiwyg_profile', $form_state['wysiwyg_profile']->name);
}
if ($profile = wysiwyg_profile_load($form_state['wysiwyg_profile']->format)) {
$form_state['redirect'] = 'admin/config/content/wysiwyg/profile/' . $form_state['wysiwyg_profile']->format . '/edit';
drupal_set_message(t('The lock has been broken and you may now edit this profile.'));
}
else {
$form_state['redirect'] = 'admin/config/content/wysiwyg/profile';
drupal_set_message(t('The lock has been broken and you may now create a new profile.'));
}
}