Commit 6b6e4e45 authored by sun's avatar sun

#323795 by sun: Removed obsolete Wysiwyg Editor module files.

parent 49c7a954
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#323795 by sun: Removed obsolete Wysiwyg Editor module files.
#308912 by sun: Fixed alignment of editor buttons in TinyMCE 3.
#316507 by sun: Fixed TinyMCE 3 not detached properly from AJAX contents.
#320559 by markus_petrux, sun: Added confirmation form to delete profiles.
......
; $Id$
name = Wysiwyg Editor (UNINSTALL)
description = Please uninstall this module after running update.php.
package = User interface
core = 6.x
<?php
// $Id$
/**
* Implementation of hook_schema().
*/
function wysiwyg_editor_schema() {
$schema = array();
$schema['wysiwyg_editor_profile'] = array(
'description' => t('Stores Wysiwyg Editor profiles.'),
'fields' => array(
'name' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
'settings' => array('type' => 'text', 'size' => 'normal'),
'plugin_count' => array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('name'),
);
$schema['wysiwyg_editor_role'] = array(
'description' => t('Stores user role access permissions for Wysiwyg Editor profiles.'),
'fields' => array(
'name' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
'rid' => array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('name', 'rid'),
);
return $schema;
}
/**
* Implementation of hook_uninstall()
*/
function wysiwyg_editor_uninstall() {
drupal_uninstall_schema('wysiwyg_editor');
}
/**
* Add editor key to wysiwyg profiles.
*/
function wysiwyg_editor_update_6002() {
$ret = array();
$profiles = db_query("SELECT name, settings FROM {wysiwyg_editor_profile}");
while ($profile = db_fetch_object($profiles)) {
$settings = unserialize($profile->settings);
if (!isset($settings['editor'])) {
$settings['editor'] = 'tinymce';
// We can't use update_sql() here because of curly braces in serialized
// array.
db_query("UPDATE {wysiwyg_editor_profile} SET settings = '%s' WHERE name = '%s'", serialize($settings), $profile->name);
}
}
return $ret;
}
/**
* Enable Wysiwyg module.
*/
function wysiwyg_editor_update_6003() {
$ret = array();
if (!module_exists('wysiwyg')) {
// Load Wysiwyg module.
module_enable(array('wysiwyg'));
// Invoke module installation.
module_invoke('wysiwyg', 'install');
// Disable Wysiwyg Editor module.
module_disable(array('wysiwyg_editor'));
$ret[] = array('success' => TRUE, 'query' => t('Wysiwyg Editor module has been disabled and replaced with Wysiwyg module. Your Wysiwyg profiles should have been migrated.'));
}
return $ret;
}
<?php
// $Id$
// Dummy file to protect users who did not remove the complete module folder.
// Remove after publishing 0.4 release.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment