function _ckeditor_d6_to_d7_migration in CKEditor - WYSIWYG HTML editor 7
Adapts D6 table structure to D7 schema.
3 calls to _ckeditor_d6_to_d7_migration()
- ckeditor_update_7000 in ./
ckeditor.install - Updates broken settings for the 'Full' profile. (Resets toolbar to default)
- ckeditor_update_7003 in ./
ckeditor.install - Fixes static paths to plugin files.
- ckeditor_update_7004 in ./
ckeditor.install - Minor update for those who have run update.php with problems.
File
- ./
ckeditor.install, line 614
Code
function _ckeditor_d6_to_d7_migration() {
if (db_table_exists('ckeditor_role')) {
db_drop_table('ckeditor_role');
}
if (!db_table_exists('ckeditor_input_format')) {
$ckeditor_input_format = array(
'description' => 'Stores CKEditor input format assignments',
'fields' => array(
'name' => array(
'type' => 'varchar',
'not null' => TRUE,
'default' => '',
'length' => 128,
'description' => 'Name of the CKEditor role',
),
'format' => array(
'type' => 'varchar',
'not null' => TRUE,
'default' => '',
'length' => 128,
'description' => 'Drupal filter format ID',
),
),
'primary key' => array(
'name',
'format',
),
);
db_create_table('ckeditor_input_format', $ckeditor_input_format);
}
}