You are here

function ckeditor_disable_wysiwyg in CKEditor - WYSIWYG HTML editor 7

Same name and namespace in other branches
  1. 6 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 1857
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/config/content/ckeditor');
}