summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg.install26
2 files changed, 24 insertions, 3 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8ecc283..372c44a 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -19,6 +19,7 @@ Wysiwyg 7.x-2.x, xxxx-xx-xx
Wysiwyg 6.x-2.x, xxxx-xx-xx
---------------------------
+by sun: Fixed coding style in wysiwyg_schema().
#964978 by sun, TwoD: Added hook_wysiwyg_editor_settings_alter() documentation.
#1007066 by TwoD, penguin25: Fixed CKEditor ignores resizable option.
#613944 by TwoD, sun: Fixed data.node not always present in CKEditor.
diff --git a/wysiwyg.install b/wysiwyg.install
index 20a50ed..55c6c61 100644
--- a/wysiwyg.install
+++ b/wysiwyg.install
@@ -8,11 +8,31 @@ function wysiwyg_schema() {
$schema['wysiwyg'] = array(
'description' => t('Stores Wysiwyg profiles.'),
'fields' => array(
- 'format' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
- 'editor' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
- 'settings' => array('type' => 'text', 'size' => 'normal'),
+ 'format' => array(
+ 'type' => 'varchar',
+ 'length' => 255,
+ 'not null' => TRUE,
+ ),
+ 'editor' => array(
+ 'description' => 'Internal name of the editor attached to the text format.',
+ 'type' => 'varchar',
+ 'length' => 128,
+ 'not null' => TRUE,
+ 'default' => '',
+ ),
+ 'settings' => array(
+ 'description' => 'Configuration settings for the editor.',
+ 'type' => 'text',
+ 'size' => 'normal',
+ ),
),
'primary key' => array('format'),
+ 'foreign keys' => array(
+ 'format' => array(
+ 'table' => 'filter_formats',
+ 'columns' => array('format' => 'format'),
+ ),
+ ),
);
return $schema;
}