have the default profiles could be defined a submodule or have some other way not to create them.

/**
 * Implements hook_install().
 */
function myfeature_install() {
  module_load_include('ckeditor', 'inc', 'includes/ckeditor.admin');
  ckeditor_profile_delete('Advanced');
  ckeditor_profile_delete('Full');
}

will remove them

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SebCorbin’s picture

This could be disabled by some variable.

function ckeditor_install() {
  module_load_include('inc', 'ckeditor', 'includes/ckeditor.lib');

  //searching ckeditor.js
  $ckeditor_path = _ckeditor_script_path();

  if(variable_get('ckeditor_install_default_profiles', TRUE)) {
    //insert default input formats to profiles
    db_insert('ckeditor_input_format')->fields(array("name" => "Advanced", "format" => 'filtered_html'))->execute();
    db_insert('ckeditor_input_format')->fields(array("name" => "Full", "format" => 'full_html'))->execute();

Or better, check if the full_html and filtered_html input formats exist

discipolo’s picture

Status: Active » Needs review
FileSize
751 bytes

if using this patch i can prevent ckeditor from creating those profiles on install by the following method in my install profile:
#1443108: installation during install profile can cause problems due to hook_init() starting poorman's cron process

this wont remove those ckeditor profiles but prevent them from being assigned to an input format.

discipolo’s picture

Status: Needs review » Active
FileSize
1.01 KB