You are here

function varbase_editor_enable in Varbase Editor 7.3

Implements hook_enable().

File

./varbase_editor.install, line 6

Code

function varbase_editor_enable() {
  features_revert(array(
    'varbase_editor' => array(
      'ckeditor_profile',
    ),
  ));

  // Disable ace_editor filter_format since we have a HTML format, also this
  // will allow us to replace or remove ace editor without legacy problems.
  db_update('filter_format')
    ->fields(array(
    'status' => 0,
  ))
    ->condition('format', 'ace_editor')
    ->execute();
}