You are here

function varbase_editor_update_8002 in Varbase Editor 8.6

Same name and namespace in other branches
  1. 8.7 varbase_editor.install \varbase_editor_update_8002()
  2. 8.4 varbase_editor.install \varbase_editor_update_8002()
  3. 8.5 varbase_editor.install \varbase_editor_update_8002()
  4. 9.0.x varbase_editor.install \varbase_editor_update_8002()

Enable pathologic module. Enable image resize filter module. Enable ckeditor bidi module. Enable pathologic module.

File

./varbase_editor.install, line 104
Install, update and uninstall functions for the Varbase editor module.

Code

function varbase_editor_update_8002() {

  // Enable pathologic module.
  if (!\Drupal::moduleHandler()
    ->moduleExists('pathologic')) {
    \Drupal::service('module_installer')
      ->install([
      'pathologic',
    ], FALSE);
  }

  // Enable image resize filter module.
  if (!\Drupal::moduleHandler()
    ->moduleExists('image_resize_filter')) {
    \Drupal::service('module_installer')
      ->install([
      'image_resize_filter',
    ], FALSE);
  }

  // Enable ckeditor bidi module.
  if (!\Drupal::moduleHandler()
    ->moduleExists('ckeditor_bidi')) {
    \Drupal::service('module_installer')
      ->install([
      'ckeditor_bidi',
    ], FALSE);
  }

  // Enable pathologic module.
  if (!\Drupal::moduleHandler()
    ->moduleExists('pathologic')) {
    \Drupal::service('module_installer')
      ->install([
      'pathologic',
    ], FALSE);
  }
}