You are here

function wysiwyg_spellcheck_requirements in Wysiwyg SpellCheck 6

Same name and namespace in other branches
  1. 7 wysiwyg_spellcheck.install \wysiwyg_spellcheck_requirements()

Implementation of hook_requirements().

File

./wysiwyg_spellcheck.install, line 107
WYSIWYG Spellcheck module install file.

Code

function wysiwyg_spellcheck_requirements($phase) {
  $requirements = array();
  switch ($phase) {
    case 'runtime':
      if (function_exists('wysiwyg_get_editor')) {
        if (wysiwyg_get_editor('tinymce')) {
          $requirements['tinymce_spellchecker'] = _wysiwyg_spellcheck_requirements_tinymce($phase);
        }
        if (wysiwyg_get_editor('ckeditor')) {
          $requirements['ckeditor_spellchecker'] = _wysiwyg_spellcheck_requirements_ckeditor($phase);
        }
      }
      break;
  }
  return $requirements;
}