You are here

function editor_update_7100 in Editor 7

Allow 'editor' and 'editor_settings' fields to be NULL.

File

./editor.install, line 82
Install, update and uninstall functions for the Editor module.

Code

function editor_update_7100() {
  $spec = array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => FALSE,
    'description' => 'Name of the associated editor (CKEditor).',
  );
  db_change_field('filter_format', 'editor', 'editor', $spec);
  $spec = array(
    'type' => 'text',
    'size' => 'big',
    'not null' => FALSE,
    'serialize' => TRUE,
    'description' => 'A serialized array of name value pairs that store the editor settings for the specific editor.',
  );
  db_change_field('filter_format', 'editor_settings', 'editor_settings', $spec);
}