You are here

function ckeditor_link_init in CKEditor Link 6

Same name and namespace in other branches
  1. 7 ckeditor_link.module \ckeditor_link_init()

Implementation of hook_init().

File

./ckeditor_link.module, line 12
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_link_init() {
  if (!variable_get('clean_url', 0)) {
    module_disable(array(
      'ckeditor_link',
    ));
    drupal_set_message(t('<em>CKEditor Link</em> has been disabled. <a href="!url">Clean URLs</a> need to be enabled for this module to work properly.', array(
      '!url' => url('admin/settings/clean-urls'),
    )), 'warning');
  }
}