You are here

function ckeditor_disable_wysiwyg in CKEditor - WYSIWYG HTML editor 6

Same name and namespace in other branches
  1. 7 includes/ckeditor.admin.inc \ckeditor_disable_wysiwyg()
1 string reference to 'ckeditor_disable_wysiwyg'
ckeditor_menu in ./ckeditor.module
Implementation of hook_menu().

File

includes/ckeditor.admin.inc, line 2176
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_disable_wysiwyg($token) {
  if (!drupal_valid_token($token, 'ckeditorDisableWysiwyg')) {
    exit;
  }
  module_disable(array(
    'wysiwyg',
  ));
  drupal_set_message(t('The WYSIWYG module is disabled.'));
  drupal_goto('admin/settings/ckeditor');
}